home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / system-tools / zshell28 / zshell.guide (.txt) < prev    next >
Amigaguide Document  |  1996-02-26  |  132KB  |  2,621 lines

  1. @DATABASE "$VER: ZShell.doc 2.8 (25.08.95)"
  2. @NODE MAIN "ZShell-Documentation 2.8 (25.08.95)"
  3.                    @{b} ________   ___         ___
  4.                    /____   /\ (___' |___| |__ '|    |
  5.                    \___/  / / ,___) |   | |___,|___,|___,
  6.                       /  / /____________    _____   _____
  7.                      /  / / \__________ \  /_____\ /__ _/
  8.                     /  / /__           \ \// /___/_\__ \
  9.                    /  /_____\           \_/  \_________/
  10.                    \________/@{ub}
  11.        _________________________________________________________
  12.      _|                                                         |_
  13.     | |   ZShell v1.30 is Copyright 
  14.  1990,91 by Paul Hayter    | |
  15.     | | Update to v2.8 is Copyright 
  16.  1993-95 by Martin Gierich | |
  17.     | |________________________________________________________ | |
  18.     |__\|                                                     |/__|
  19.      \|                                                         |/
  20.              Titlepage created by Timothy D. Cochran (XMR)
  21. If you have used another version of ZShell, please read @{" Changes " Link Changes}.
  22. @{" For those who never read the whole Documentation" Link For_those}
  23. @{" Introduction, Features and Concepts " Link Introduction}
  24. @{" Starting ZShell " Link Starting}
  25. @{" General Usage " Link General_Usage}
  26. @{" Command Overview " Link Index}
  27. @{" Builtin Commands for Disk Management " Link BUILTIN1}
  28. @{" Builtin Commands for Scripts and Controlling " Link BUILTIN2}
  29. @{" Builtin Commands for Advanced Users " Link BUILTIN3}
  30. @{" Past, Present and Future " Link Past}
  31. @{" Distribution, Copyright and Disclaimer " Link CopyDis}
  32. @{" Credits " Link Credits}
  33. @{" Authors " Link Authors}
  34. @ENDNODE
  35. @NODE General_Usage "General Usage"
  36. @{" History and Command Line Editing " Link History}
  37. @{" Command Line Parser " Link Parser}
  38. @{" Executing Commands " Link Executing}
  39. @{" Using Numbers " Link Numbers}
  40. @{" Wild Cards " Link Wild_Card}
  41. @{" Options " Link Option}
  42. @{" Redirecting Input/Output " Link Redirect}
  43. @{" Anonymous Pipes " Link Pipes}
  44. @{" Filename Completion " Link Filenamecompletion}
  45. @{" Tips and Hints " Link Tips}
  46. @ENDNODE
  47. @NODE Past "Past, Present and Future"
  48. @{" Changes " Link Changes}                               ->Past
  49. @{" Known Problems " link Problems}                        ->Present
  50. @{" Possibilities for Future Improvements " Link Future} ->Future
  51. @ENDNODE
  52. @NODE CopyDis "Copyright & Disclaimer"
  53. Some boring but neccessary things:
  54. @{" Distribution " Link Distribution}
  55. @{" Copyright " Link Copyright}
  56. @{" Disclaimer " Link Disclaimer}
  57. @ENDNODE
  58. @NODE Index "Command Overview"
  59. @{" AddBuffers " Link AddBuffers} drive [number_of_buffers]
  60. @{" Alias " Link Alias} [variable] [definition]
  61. @{" Ask " Link Ask} [question]
  62. @{" Assign " Link Assign} [logical name:] [directory] [ADD|DEFER|PATH|REMOVE]
  63. @{" Avail " Link Avail} [-C]
  64. @{" Border " Link Border} ON|OFF [number]
  65. @{" Break " Link Break} task_description [signalmask|C|D|E|F]
  66. @{" Cd " Link Cd} [destination]
  67. @{" Copy " Link Copy} [-R] [-S] source1 [source2] ... [destination]
  68. @{" Cls " Link Cls}
  69. @{" Comments " Link Comments}
  70. @{" Config " Link Ctrl} CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE|LOGFILE
  71. @{" Date " Link Date} [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  72. @{" Delete " Link Delete} [-R] [-Q] source1 [source2] [source3] ... [FORCE]
  73. @{" Delete Device " Link Delete2} devicename [name [filesystem]]
  74. @{" Dir " Link Dir} [-R] [-Q] [source1] [source2] ...
  75. @{" DiskChange " Link DiskChange} device
  76. @{" Echo " Link Echo} [string]
  77. @{" Else " Link Else}
  78. @{" EndCLI " Link EndCLI} [-C]
  79. @{" EndIf " Link EndIf}
  80. @{" Eval " Link Eval} expression
  81. @{" Execute " Link Execute} [ZSHELL] source
  82. @{" FailAt " Link FailAt} [failat_level]
  83. @{" Fault " Link Fault} [error_number]
  84. @{" FileNote " Link FileNote} file|directory comment
  85. @{" Flags " Link Flags} [CHECK|MATCH|ICON|WILD|ERRORS|DEBUG|CUT|ALL|HIDE|PIPE] [ON|OFF]
  86. @{" GetMsg " Link GetMsg} [portname]
  87. @{" Help " Link Help1} [topic]
  88. @{" HType " Link HType} source [offset]
  89. @{" If " Link If} [NOT][WARN][ERROR][FAIL][EXISTS file]
  90. @{" Info " Link Info}
  91. @{" Join " Link Join} [-R] [-S] source1 [source2] ... destination
  92. @{" Kill " Link Kill} device|taskdescription
  93. @{" Lab " Link Lab} label
  94. @{" List " Link List} [-R] [-Q] [source1] [source2] ...
  95. @{" Locate " Link Locate} [-C] [bptr|name] [READ|WRITE]
  96. @{" Lock " Link Lock} device ON|OFF
  97. @{" M " Link M} [start_address] [end_address]
  98. @{" MakeDir " Link MakeDir} directory1 [directory2] ...
  99. @{" MakeIcon " Link MakeIcon} filename [icontype]
  100. @{" MakeLink " Link MakeLink} linkname filename [SOFT]
  101. @{" MemClk " Link MemClk} ON|OFF|ALARM
  102. @{" More " Link More} source [line_count]
  103. @{" Move " Link Move} [-R] [-S] source1 [source2] ... [destination]
  104. @{" NewCLI " Link NewCLI} [-Wnew_window] [-Sstart_script] [-Ccommand] [-N] [-Hhelpfile] [-E]
  105. @{" Path " Link Path} [-C] [path1] [path2] [path3] ...
  106. @{" Prompt " Link Prompt} [string]
  107. @{" Protect " Link Protect} [-R] [-S] [file/dir1] [file/dir2] ... [+|-|=|h|s|p|a|r|w|e|d]
  108. @{" PutMsg " Link PutMsg} port_description [number1|string1] [number2|string2] ...
  109. @{" Quit " Link Quit} [error_code]
  110. @{" Relabel " Link Relabel} drive newname
  111. @{" Rename " Link Rename} source destination
  112. @{" Resident " Link Resident} [command1] [command2] ...
  113. @{" Review " Link Review} [bytesize|-C|-Sfilename]
  114. @{" Run " Link Run} commandline
  115. @{" Search " Link Search} file search_string
  116. @{" SetClock " Link SetClock} LOAD|SAVE
  117. @{" SetDate " Link SetDate} file|directory [date/time]
  118. @{" Show " Link Show} D|I|L|M|P|R|S|T|V
  119. @{" Skip " Link Skip} label
  120. @{" Split " Link Split} [-Q] source dest length [offset]
  121. @{" Stack " Link Stack} [size]
  122. @{" Strings " Link Strings} sourcefile [count]
  123. @{" UnAlias " Link UnAlias} [alias1] [alias2] [alias3] ...
  124. @{" Wait " Link Wait} timeout
  125. @{" TaskPri " Link TaskPri} priority [task_description]
  126. @{" Type " Link Type} source
  127. @ENDNODE
  128. @NODE For_those "For those who never read the whole Documentation"
  129. @{" Start "link Starting} the file called ZShell from Workbench or CLI (SHELL), or even
  130. better: Put the file ZShell in the C: directory and start the file ZSH.
  131. Now press the HELP key. Among lots of other information you see "TYPE HELP
  132. ? ...". Make sure that ZShell.doc is in the @{" current directory " link CD} or in S:
  133. and try that. You will see how to use the @{" ONLINE HELP " Link HELP1}. Try to type
  134. "HELP HISTORY" to see how @{" command line editing " link History} works. @{" Execute " link Execute} the
  135. example startup file "ZStart" or @{" put " link Copy} it into the S: drawer and
  136. @{" have a look " link More} at it.
  137. Please send @{" me " Link Authors 9} your comment; @{" my " Link Authors 9} Internet-Adress is:
  138. uj3w@rz.uni-karlsruhe.de (Martin Gierich).
  139. Click & Play buttons:
  140. Normal start      -> @{" ZShell " System "ZShell -d"}
  141. Showing help      -> @{" ZShell -cHELP " System "ZShell -chelp -d"}
  142. Try ZStart-script -> @{" ZShell -sZStart " System "ZShell -sZStart -d"}
  143. Directory lister  -> @{" ZShell -cLIST " System "ZShell -cLIST -d"}
  144. Things somewhere hidden in the documentation:
  145. * To avoid using an internal command or an alias, you can put a point
  146.   before it, eg. ".list libs:".
  147. * To @{" complete " Link Filenamecompletion} a filename, type in a bit then press TAB.
  148. * If you use "config hide *.info", DIR and Filenamecompletion ignore Icons.
  149. * To start buffering output, use "review 20000"; press Shift+TAB to see it.
  150.   With it you can use ">m" to @{" redirect " Link Redirect} to MORE, a bit like piping to MORE.
  151. * If you have OS3.0+, try "config colour 01111111".
  152. * @{" Aliases " link Alias} work different to them in normal Shell.
  153. * Use "prompt %n.%p>" to get a full path prompt with process number.
  154. * See @{" FLAGS " link Flags} on how to configure some things you need.
  155.   With "flags icon on" you can switch on Iconifying.
  156. * Try "flags debug on" to debug your script-files and your aliases.
  157. * Try to drag Workbench-Icons into the ZShell window
  158. * See @{" Features " link Features} and @{" Tips and Hints " link Tips} for more.
  159. @ENDNODE
  160. @NODE Introduction "Introduction"
  161. ZShell is a small, fast and powerful Shell.
  162. Have a look at @{" Features " Link Features} to see the advantages.
  163. ZShell is tested with Kickstart 1.3 , 2.04 and 3.0 and should
  164. run also with other Kickstarts. There are no special requirements,
  165. but some things can only be used with Kickstart 2.0 or better.
  166. I tried to made usage similar to AmigaDOS. If you did not
  167. understand something, have a look at your AmigaDOS usermanual.
  168.    @{" Concepts " Link Concepts}                        @{" Features " Link Features}
  169. Used Abbreviations:
  170. OS2.0+ means Kickstart and Workbench versions are 2.0 or better
  171. OS1.3- means Kickstart and Workbench versions are 1.3 or older
  172. FNC means filename completion
  173. @ENDNODE
  174. @NODE Concepts "Concepts"
  175. I have heard that there is a Shell called "zsh" on UNICS-systems. ZShell
  176. has nothing to do with it, because it tries to be AmigaDOS compatible,
  177. not just another UNICS shell clone. The compatibility is, of course, not
  178. 100%, if you need that use the original AmigaDOS Shell. So ZShell has some
  179. differences, that give the special feeling of it.
  180. The first main advantage of ZShell is its power/size ratio. In just 32K
  181. there are all often needed commands (like list,copy etc.) and some not
  182. so often needed, which do not increase size much.
  183. The second main advantage is the Filename completion (short: FNC) and the
  184. review buffer. FNC is like those shells on UNICS and can therefore be
  185. controlled fully with the keyboard. No annoying filerequesters pop up,
  186. that make it neccessary to change from keyboard to mouse.
  187. Nevertheless you can use ZShell with (memory hungry and slow) console
  188. handlers like @{" KingCON " link StartingCON}.
  189. Third, I tried to make using ZShell as easy to use as possible. Not like
  190. UNICS shells which have thousands of options you will never keep in mind.
  191. Fourth thing is script file execution. ZShell itself supports only the
  192. basic stuff to execute scripts, because if you need a more complex
  193. construction you can use ARexx or another programming language.
  194. ZShell was never intended to be a substitute for a programming language !
  195. You can use scripts made for AmigaDOS shell without problems, because
  196. the command EXECUTE uses AmigaDOS to execute it.
  197. See @{" Future " link Future} for the future concepts.
  198. @ENDNODE
  199. @NODE Features "Features"
  200. * @{" Freeware " Link Copyright}, no payment required.
  201. * Usage is similar (or better) to the standard AmigaDOS shell.
  202. * About 32K small (pure assembler code, source included).
  203. * Supports the standard housekeeping commands which are builtin,
  204.   so no disk access is necessary.
  205.   eg. list, dir, cd, rename, makedir, delete, copy, path, info, type
  206. * A total of 66 builtin commands.
  207. * @{" Starting " Link Starting} from Workbench (!) or CLI/Shell. No Installation required.
  208. * Fast @{" Filename completion " Link Filenamecompletion} by simply pressing TAB.
  209. * @{" Anonymous pipes " link Pipes}. You can choose between real and pseudo pipes.
  210. * @{" Review buffer " Link Review} to see again what scrolled out of the window.
  211. * Some @{" commands " Link BUILTIN3} and features for programmers.
  212. * @{" Online Help " Link Help1} function and @{" AmigaGuide-Documentation " link Guide.lib} with examples.
  213. * @{" Command line editing " Link history} better than OS2.0/3.0 Shell.
  214. * Support of OS2.0+ and OS3.0+ specific features
  215. * @{" Wild cards " Link wild_card} and @{" recursive " link Option} processing.
  216. * Real @{" RUN " Link Run} and @{" NEWCLI " Link Newcli} command that reenters ZShell quickly.
  217. * @{" DIR " Link DIR} and @{" LIST " Link LIST} both sort (by default) and show filesize.
  218. * Inbuild Amigaguide-/Multi-viewer
  219. * Application-Window/-Icon
  220. * Can open window on own @{" screen " Link ScreenStart}.
  221. * 100% @{" script " Link Execute} compatibility.
  222. * Can @{" create " Link MakeLink} and @{" show " Link List} Hard- and Softlinks.
  223. * Command and Function key @{" aliasing " Link alias}.
  224. * Can @{" iconify " Link FLAGS 20} itself.
  225. * Most things are localized if locale.library is available.
  226. * Colorful output (or fast scrolling with OS3.0+, see @{" CONFIG COLOUR " Link CTRL})
  227. * Simple @{" MORE " Link MORE} type text viewer.
  228. * Makes itself @{" resident " Link resident} for quicker @{" starting " Link starting} and memory saving.
  229. @ENDNODE
  230. @NODE Starting "Starting ZShell"
  231. There are three ways of starting ZShell:
  232.  1. The easiest way:
  233.     Start the file called "ZShell" from Workbench or CLI/Shell.
  234.  2. Put the file called "ZShell" in the C: directory and
  235.     start the file called "ZSH" from Workbench or CLI/Shell.
  236.  3. A bit complicated and only for starting from Workbench:
  237.     Make a startup script (see below) or an empty file with a PROJECT
  238.     icon. Change the default tool to "ZSH" or "ZShell" (better ZSH,
  239.     but then put ZShell in C: ) with the right path. Doubleclicking on
  240.     this project icon will start ZShell and execute this script.
  241.     You can also shift-doubleclick a startup script with ZSH/ZShell.
  242. The first way is recommended for having a quick glance at ZShell,
  243. but if you use ZShell sometimes, the second way is better, because "ZSH"
  244. is about 800 Bytes long and starts the ZShell-resident if possible.
  245. So loading "ZShell" is only necessary the first time you use ZShell
  246. after booting up. Anyway using "ZSH" is fully optional.
  247. Click here to start -> @{" ZShell " System "ZShell -d"}
  248. @{" Starting from CLI/Shell " Link CLIStart}
  249. @{" Starting from Workbench " Link WBStart}
  250. @{" Opening window on own screen " Link ScreenStart}
  251. @{" Starting using console handlers like KingCON " Link StartingCON}
  252. @{" Starting from Hotkey-/Directory-Utilities " Link UtilStart}
  253. @{" How to use CON: " Link Conuse}
  254. @{" Errormessages during starting " Link ErrorStart}
  255. @{" Several notes " Link Notes}
  256. @ENDNODE
  257. @NODE CliStart "Starting from CLI"
  258. If starting from CLI/Shell you can specify the name of a script file
  259. (see @{" EXECUTE " Link EXECUTE}) as an argument which will be executed after starting.
  260. Precede the name with "-s". If there is no name given, ZShell will try
  261. to execute S:ZStart . After "-w" you can specify a window-description.
  262. See @{" NEWCLI " link NewCLI} for more details, it is exactly the same.
  263. eg.     ZSH -sram:hello     {will try to execute ram:hello}
  264.         ZShell              {will try to execute S:ZStart}
  265.         ZSH -sram:hello "-wCON:10/10/90/90/Hi there" {opens this window}
  266. All CLI-Options:
  267.  -Sname (Script): Start script named "name" (default: S:ZStart)
  268.  -Wdesc (Window): Open window with window-description "desc"
  269.  -Ccmd (Command): Start command named "cmd"
  270.  -D     (Detach): Creates its own process (must be last option)
  271.  -N      (Noraw): Switches off the internal command-line-editing
  272.  -Edepth/diplayID/overscan/title (scrEEn): Opens @{" Public Screen " Link ScreenStart}, OS2.0+
  273.  -Hfile   (Help): Determine the file (with path) of the online help (default: S:ZShell.doc)
  274.  -r (not Resident): Testing-stuff (must be first option and lowercase)
  275. @ENDNODE
  276. @NODE WBStart "Starting from Workbench"
  277. If starting from Workbench you can specify the window-description
  278. and the startup script (default S:ZStart , see above) with ToolTypes:
  279. eg.     WINDOW=con:20/50/400/100/Moin
  280.         SCRIPT=ram:hello
  281.         WINDOW=             {this would not open a window}
  282. Make sure that WINDOW and SCRIPT are in capital letters.
  283. (You can edit the ToolTypes by selecting an icon and then choosing
  284. "Information" from the Workbench-Menu.)
  285. All ToolTypes:
  286.  SCRIPT=name : Start script named "name" (default S:ZStart)
  287.  WINDOW=desc : Open window with window-description "desc"
  288.  COMMAND=cmd : Start command named "cmd"
  289.  NORAW=      : Switches off the internal @{" command-line-editing " Link History}
  290.  ICONNAME=name : Specify name of the icon for @{" iconifying " link Flags 20} (OS2.0+)
  291.  XPOS=number : Give the position of the icon (OS2.0+)
  292.  YPOS=number : Give the position of the icon (OS2.0+)
  293.  ICONIFY=    : Start in iconifyed mode (OS2.0+)
  294.  SCREEN=depth/displayID/overscan/title : Opens a @{" Public Screen " Link ScreenStart} (OS2.0+)
  295.  HELPMAN=file: Determine the file (with path) of the online help (default: S:ZShell.doc)
  296. These two are handled by Workbench 2.0+:
  297.  DONOTWAIT   : Use this if you put ZShell in the WBStartup-drawer
  298.                (preferably together with the ICONIFY ToolType)
  299.  TOOLPRI=pri : Sets the @{" priority " Link Taskpri} of the process
  300. @ENDNODE
  301. @NODE ScreenStart "Opening window on own screen"
  302. OS2.0+
  303. You can open a Public Screen using the CLI-Option "-e" or the
  304. Tooltype "SCREEN". Optionally you can pass some arguments:
  305. depth: (default 2) Number of Bitplanes being used
  306. displayID: (default $8000) DisplayID looked up in sys:WBStartup/Mode_Names
  307. overscan: (default 1) Overscan type. 1=text, 2=standard, 3=maximum
  308. title: (default ZShell) Case sensitive name of Public Screen
  309. To get your window open there, you have to add ".../SCREEN ZShell" to your
  310. window-description.
  311. Examples for CLI-Start:
  312. ZShell "-wCON:////Shell/CLOSE/SCREEN ZShell" -e
  313. ZShell "-wCON:1/10/640/390/Shell/CLOSE/SCREEN ZShell" -e1/$8004
  314. ZShell "-wCON:////Shell/CLOSE/SCREEN Super" -e3/$8000/2/Super
  315. Example for Workbench-Start:
  316. SCREEN=3/$8000/1/ZShell-Screen
  317. WINDOW=CON:1/10/640/190/Shell/CLOSE/SCREEN ZShell-Screen
  318. Example for a fullsize ZShell on its own PAL-screen:
  319. SCREEN=
  320. WINDOW=CON:1/4/640/253//NOBORDER/NOSIZE/BACKDROP/SCREEN ZShell
  321. @ENDNODE
  322. @NODE UtilStart "Starting from Hotkey-Utilities or Directory-Utilities"
  323. In most cases you have to use a template like @{" starting from CLI " Link CLIStart}
  324. when configuring the utility.
  325. If the utility does not open a window, you have to use the "-w" option.
  326. If the utility seems to hang up after starting ZShell, try the "-d" option.
  327. With "-d" you do not need a "-w" option.
  328. Example:  zshell -wCON:1/10/640/100/ZShell -d
  329. Some special programs:
  330. YAK: Use "zshell -d" as argument of a hotkey-definition.
  331. MachV: EXECMD"zshell -d"
  332. MTool: Define a program with "zshell" as program and "-d" as parameters.
  333. @ENDNODE
  334. @NODE StartingCON "Starting ZShell using KingCON"
  335. KingCON is a Console-Handler with some GUI-Features.
  336. If you do not use KingCON, you can skip this chapter.
  337. Starting from CLI/Shell:
  338.   Use the option -n, and you can optionally use option -w.
  339.   Examples:  ZShell -n
  340.              ZShell -wKCON: -n
  341. Starting from Workbench:
  342.   Use the ToolTypes NORAW and WINDOW=KCON:
  343. The CLI-Option "-n" and the ToolType "NORAW" switch off the internal
  344. command-line-editor, so you could make use of the command-line-
  345. editing facilities of KingCON.
  346. @ENDNODE
  347. @NODE Conuse "How to use CON:"
  348. CON: stands for Console-Handler. This is a program which handles
  349. keypresses and textual outputs on its window similar to a file.
  350. You have to pass several things when opening a CON: window:
  351. CON:leftpos/upperpos/width/height/title
  352. leftpos,upperpos are the position of the left top edge in pixels.
  353.   Both need to be 1 or more.
  354. width,height are the window's dimensions in pixels.
  355. title is a string
  356. With OS2.0+ you can pass some more things and you can drop some things.
  357. So "CON:" alone is valid and opens with the default settings.
  358. To get a close gadget you have to append "/CLOSE", eg.
  359.     CON:1/1/600/100/Great/CLOSE
  360. "/SCREEN screenname" opens on a public screen
  361. "/WAIT" stays till you click the close gadget or press CTRL-\
  362. "/ALT" gives an alternative size with the zoom gadget
  363. ... there are some more but I do not know much of them
  364. @ENDNODE
  365. @NODE ErrorStart "Errors during starting"
  366. If there is an error during starting, a recoverable alert will appear
  367. and show a number. Here is a list what these numbers mean:
  368. Workbench-Start:
  369. 1: No memory for CLI-Structure
  370. 2: CLI-Table 20 limit
  371. 3: No current directory
  372. 4: No icon.library
  373. 5: No icon
  374. OpenWindow:
  375. 10: Already opened
  376. 11: Cannot open output
  377. 12: Not interactive
  378. 13: Cannot open input
  379. Newcli:
  380. 15: Cannot copy CurrentDir
  381. 16: Cannot set up pipe process
  382. Input:
  383. 20: Input failed
  384. 21: Unexpected window closure (harmless)
  385. 22: Forbid or Disable state (bug in external command)
  386. @ENDNODE
  387. @NODE Notes "Several notes"
  388. * You can start ZShell from within the Startup-Sequence. After ending
  389.   ZShell the Startup-Sequence will continue. If you use "ZShell -d" in
  390.   the Startup-Sequence, it will continue and a ZShell will pop up.
  391. * If you would like a scrollbar, try CB (ConBuffer) from
  392.   Aminet/util/shell/conbuffer11.lha . A bit old, but it works.
  393. * You can rename "ZSH" as what you like, but do not rename "ZShell"
  394. * If you start ZShell from the Workbench-Menu "Execute Command",
  395.   you can close the window after ending ZShell with CTRL-\  or
  396.   doubleclick the close-gadget.
  397. * ZShell and ZSH are PURE (see @{" RESIDENT " Link RESIDENT},@{" PROTECT " Link PROTECT}).
  398. @ENDNODE
  399. @NODE History "History and Command Line Editing"
  400. ZShell has a 1024 byte circular history buffer. It works similar
  401. to most other shells, the NEWCON: handler in Workbench V1.3 and
  402. the standard console handler in OS2.0+.
  403. You can change the edit keys with @{" CONFIG CTRLKEYS " Link CTRL}.
  404. These are the default keys:
  405.   UP ARROW        - go back one line in the history buffer
  406.   DOWN ARROW      - go forward one line in the history buffer
  407.   SHIFT UP ARROW  - go to the 1st line in the history buffer if nothing
  408.                     was typed. Otherwise the string left of the cursor
  409.                     will be searched in history buffer (like in OS2.0+)
  410.   SHIFT DOWN ARROW- go to the last line in the history buffer, which
  411.                     holds the last modified line
  412.                     This is some kind of undo.
  413.   LEFT ARROW      - move cursor left
  414.   RIGHT ARROW     - move cursor right
  415.   SHIFT LEFT ARROW- move cursor to left end
  416.   SHIFT RIGHT ARROW move cursor to right end
  417.   CTRL R          - move cursor to start of previous word
  418.   CTRL T          - move cursor to start of next word
  419.   CTRL S          - delete to start of line
  420.   CTRL E          - delete to end of line
  421.   CTRL W          - delete one word right of cursor
  422.   CTRL Q          - delete one word left of cursor
  423.   CTRL X          - delete whole line
  424.   TAB             - see @{" FILENAME COMPLETION " Link FILENAMECOMPLETION} (that is great !)
  425.   SHIFT TAB       - read @{" review-buffer " Link review} with @{" MORE " Link MORE}
  426.   CTRL V          - read history-buffer with @{" MORE " Link MORE}
  427.   CTRL F          - pop up a filerequester (needs asl.library)
  428.                     See @{" FILENAME COMPLETION " Link FILENAMECOMPLETION} for more.
  429.   CTRL L          - clear the ZShell window
  430.   CTRL P          - clear the Filename completion buffer. This is useful
  431.                     with CrossDOS, because it does not notice changes.
  432.   RETURN          - put commandline in history-buffer and execute it
  433.   SHIFT RETURN    - put commandline in history-buffer without executing
  434.   ESC (Escape)    - quit ZShell like @{" ENDCLI " Link ENDCLI} (I like this very much !)
  435. Words are delimited by space, point, slash and colon ( ./:).
  436. Again, command line editing is similar to most shells. Backspace,
  437. delete and return do what they are supposed to do.
  438. If you have defined (using @{" ALIAS " Link Alias}) some Function keys,
  439. you can use them, too.
  440. OS2.0+:
  441. You can drop Workbench-Icons into the ZShell's window. Then the name of
  442. the icon will be inserted into the commandline.
  443. When in @{" iconifyed " Link Flags 20} mode, you can drop an icon on that
  444. Application-Icon with the same effect.
  445. @ENDNODE
  446. @NODE Parser "Command Line Parser"
  447. After entering a command line and pressing RETURN, it will be analyzed.
  448. Characters that have a special meaning:
  449.  ; separates multiple commands
  450.  | separates multiple commands with @{" piping " link pipes} output/input
  451.  > output @{" redirection " link redirect}
  452.  < input @{" redirection " link redirect}
  453.  " quote
  454. If you want to use one of these characters in a normal way, like in a
  455. filename, you have to precede it by \ or you have to enclose the whole
  456. argument in quotes. If you want to have a \ before these special
  457. characters, you have to type \\ .
  458. Example:                   a\;b\\|c\<d
  459. This will be converted to  a;b\|c<d
  460. The ; is for multiple commands in one command line. Example:
  461.   dir ram:;info;echo Done^J
  462. Quotes can be used to surround arguments. Inside the quotes no parsing
  463. is done. This way you can have arguments which contain spaces. Every
  464. opening quote must be followed by a closing quote. Example:
  465.   dir "ram disk:"
  466.   echo "one; two; three"
  467. @ENDNODE
  468. @NODE Executing "Executing Commands"
  469. Most commands can be aborted by depressing Control-C.
  470. Nearly everything is case independent.
  471. To use a disk command simply type its name after the prompt, the
  472. same way as you would do in other shells. The first part of the input
  473. up to the first space is interpreted as commandname. It is searched
  474. for (in this order) :
  475.  1. in the @{" alias " Link alias} list
  476.  2. in the internal (builtin) command list (see @{" COMMAND OVERVIEW " Link Index})
  477.  3. in the @{" resident " Link resident} command list
  478.  4. in the current directory (see @{" CD " Link CD})
  479.  5. in the @{" command search path " Link path}
  480. and, if it is found, it is executed. The part after the first space
  481. is taken as arguments, also called parameters. The arguments are
  482. separated by spaces. ZShell will allow up to 25 arguments.
  483. If the commandname was found on disk, it will be analyzed:
  484.  1. If the commandname is a directory, the current directory will be
  485.     changed (see @{" CD " Link CD}) to it.
  486.  2. If the script flag is set, it will be @{" executed " Link Execute} eighter
  487.     as ZShell script or as ARexx script.
  488.  3. If the execute flag is set (and it is set in most cases), it will be
  489.     tried to treat it as normal executable command. 
  490.  4. If the command is not executable, it will be shown using
  491.     @{" amigaguide.library " Link Guide.lib} (This is an easy way to view Guides).
  492. eg.     addbuffers df0: 15
  493. "addbuffers" is the command, that will be found as a internal command.
  494. "df0:" is the first argument. "15" is the second argument. The third
  495. argument does not exist.
  496. You can avoid using an @{" alias " Link alias} or an internal (builtin) command or
  497. changing the current directory by typing a point before the
  498. commandname (this is called "force disk").
  499. To abbreviate internal or @{" resident " Link resident} commands put a point behind it.
  500. If you use just a point, the current directory will be set to the
  501. last current directory ("dir back").
  502. To get to the parent directory, you have to use a slash ( / ).
  503. eg.     .addbuffers df0: 20
  504. {This uses the disk command or if available the resident addbuffers}
  505.         ad. df0: 20   {uses the internal addbuffers command}
  506.         .add. df0: 20 {if available this uses the resident addbuffers}
  507.         .             {go back to old current dir}
  508. BEWARE of other matching commands! The first matching will be taken!
  509. "as." can mean ASK or ASSIGN, but ASK will be taken !
  510. There is no abbreviation for disk commands, use @{" Filename  Completion " Link FileNameCompletion}
  511. ( TAB-Key ) instead.
  512. A textual error message will be displayed if an AmigaDOS error occurs.
  513. @ENDNODE
  514. @NODE Guide.lib "amigaguide.library"
  515. For those who do not know:
  516.  amigaguide.library is Commodore's great hypertext system that can
  517.  easily be used to view documentations or to implement online-help into
  518.  own applications.
  519.  It needs Kickstart 1.3 or better.
  520.  You can get it from Fish Disk 920 or from Aminet as text/hyper/aguide34.lha
  521. amigaguide.library V34+ can show AmigaGuide documents and ASCII documents.
  522. V39+ that comes with OS3.0+, can show all kinds of files that are supported
  523. by your datatypes including AmigaGuide and ASCII texts.
  524. So, with OS3.0+, you can enter the name of a picture in ZShell just like
  525. a command to view it.
  526. @ENDNODE
  527. @NODE Numbers "Using Numbers"
  528. Various internal commands need numbers as arguments. Usually you simply
  529. give a decimal number, but you also can use these prefixes:
  530.   + Positive number
  531.   - Negative number
  532.   % Binary number
  533.   $ Hexadecimal number
  534.   & Hexadecimal APTR converted to BPTR
  535.   ! Hexadecimal BPTR converted to APTR
  536.   ^ Filename containing number
  537. See @{" EVAL " link Eval} for more.
  538. @ENDNODE
  539. @NODE Wild_Card "Wild Cards"
  540. ZShell supports wild card file descriptions on some commands
  541. (@{" DIR " Link DIR},@{" LIST " Link LIST},@{" DELETE " Link DELETE},@{" COPY " Link COPY},@{" CONFIG " Link CTRL},@{" JOIN " Link JOIN},@{" MOVE " Link MOVE},@{" PROTECT " Link PROTECT})
  542. Important: If you want to use | as part of a wild card, you have to
  543.   precede it by \ or enclose the wild card by quotes. This is to avoid
  544.   to be treated as an @{" pipe " link pipes}. Example:
  545.               dir ram:(*.info\|*.bak)
  546.   or          dir "ram:(*.info|*.bak)"
  547.   instead of  dir ram:(*.info|*.bak)
  548. OS2.0+ note: The default is to use AmigaDOS wildcard patternmatching.
  549.   It is localized and has not the limitations of the internal matcher.
  550.   But you have to be careful when looking at the examples in this
  551.   documentation, because they are made for the internal matcher.
  552.   (You can even use * instead of #? with the AmigaDOS matcher, because the
  553.   wildstar flag is set by ZShell in the system for all programs. Please
  554.   tell @{" me " link Authors 9} if this makes problems.)
  555.   To switch back to the internal matcher use: @{" FLAGS WILD OFF " link Flags}
  556.   AmigaDOS patternmatcher:
  557.     ?       Matches a single character.
  558.     #       Matches the following expression 0 or more times.
  559.     (ab|cd) Matches any one of the items seperated by '|'.
  560.     ~       Negates the following expression.  It matches all strings
  561.             that do not match the expression (aka ~(foo) matches all
  562.             strings that are not exactly "foo").
  563.     [abc]   Character class: matches any of the characters in the class.
  564.     [~bc]   Character class: matches any of the characters not in the
  565.             class.
  566.     a-z     Character range (only within character classes). 
  567.     %       Matches 0 characters always (useful in "(foo|bar|%)").
  568.     *       Synonym for "#?", not available by default in OS2.0,
  569.             but is switched on by ZShell.
  570.     "Expression" in the above table means either a single character
  571.     (ex: "#?"), or an alternation (ex: "#(ab|cd|ef)"), or a character
  572.     class (ex: "#[a-zA-Z]").
  573. The following refers to the internal patternmatcher:
  574. Wild cards are like those supported on MessyDOS or UNICS systems, and not
  575. the same as the ones on AmigaDOS. So use * instead of #? .
  576. NOTE: You can only effectively put one * character in a wild card.
  577. Character       Meaning
  578.   *         Match zero or more characters.
  579.   ?         Match one character.
  580.   ~         Negates the following wildcard.
  581.  [  ]       Specifies a class of characters to match.
  582.             (One of the characters in the brackets must match)
  583.   |         Separate multiple filenames (can be wildcards)
  584.             (One of the file descriptions separated by | must match)
  585. To get that just try the examples following and try it out with @{" DIR " Link DIR}.
  586. eg.    list *.info      {lists all files ending in .info}
  587.        dir z*.s         {lists all files starting z, ending in .s}
  588.        delete df0:*.info   {deletes all .info files from df0:}
  589.        copy *.s ram:    {copies all .s files to ram:}
  590.        copy 1? df0:     {copies all two char files beginning with 1}
  591.        dir ~*.s         {lists all files NOT ending in .s}
  592.        list ~*.info     {lists all files except for .info files}
  593.        dir *.[co]       {lists files ending in .c or .o}
  594.        list [abcd]*     {lists files beginning with a,b,c or d}
  595.        list c:mount|version {lists the files Mount and Version}
  596.         {OS2.0+ this would be: list c:(mount|version)  }
  597.        list ram:env/a*|*b   {lists all files starting with a or
  598.                              ending with b from RAM:env (environment)}
  599.        copy ~*.info|*.bak   {copies all files NOT ending in .info
  600.                              and NOT ending in .bak}
  601. @ENDNODE
  602. @NODE Option "Options"
  603. As nearly everything, options are also case independent.
  604. The internal commands support only four options, because this is
  605. easier to remember. These options start with a dash (-) followed by
  606. one character.
  607.   1. -C (means Clear) , used by @{" AVAIL " Link AVAIL},@{" ENDCLI " Link ENDCLI},@{" LOCATE " Link LOCATE},@{" PATH " Link PATH},@{" RESIDENT " Link RESIDENT}
  608.   2. -R (means Recursive) , used by @{" COPY " Link COPY},@{" DELETE " Link DELETE},@{" DIR " Link DIR},@{" LIST " Link LIST},@{" JOIN " Link JOIN},
  609.               @{" MOVE " Link MOVE},@{" PROTECT " Link PROTECT}
  610.   3. -Q (means Quick) , used by @{" DIR " Link DIR},@{" JOIN " Link JOIN},@{" LIST " Link LIST},@{" DELETE " Link DELETE}
  611.   4. -S (means Sort)  , used by @{" COPY " Link COPY},@{" MOVE " Link MOVE},@{" PROTECT " Link PROTECT}
  612. Instead of -R you could also use ALL , if @{" FLAGS ALL ON " Link Flags 49} is set.
  613. For some special cases there are longer options used: "delete bla force"
  614. FORCE is here an option. You can abbreviate this by a point
  615. (see @{" CONFIG DOT " link CTRL}), so "delete bla f." is the same.
  616. To avoid a filename, that is equal to an option, to be treated as an
  617. option you have to surround it with quotes:
  618.       copy "-r" ram:     {to copy the file -r to ram:}
  619.       delete "force"     {to delete the file named force}
  620. @ENDNODE
  621. @NODE Redirect "Redirecting Input/Output"
  622. The standard redirection operators are supported for all internal
  623. commands, as well as disk based and resident programs. (Redirection only
  624. affects those programs which use the dos.library's Input() and Output()
  625. functions.)
  626.     >filename   redirect std output
  627.     <filename   redirect std input
  628.     >>filename  append redirect output (tacks output onto the end of file)
  629.     <>filename  redirect input and output, "filename" must be interactive
  630.                 like CON:, NEWCON:, NIL: and AUX:
  631.     >M          view output with @{" MORE " link MORE} after the command has ended,
  632.                 you need a @{" review-buffer " link REVIEW} for that which is big enough,
  633.                 otherwise some of the output will be swallowed.
  634.     <W >W <>W   opens a window and inputs/outputs there.
  635.     <* >* <>*   redirection to current window (rarely used)
  636.     If you do not give a filename, input/output will be redirected to NIL:
  637. Redirection can be placed before, between and after arguments and has
  638. the same effect for all three cases.
  639. Note that @{" pipes " link Pipes} are some kind of redirection.
  640. eg.    dir >"ram disk:directory" df0:c
  641.        type zshell.doc <raw:0/0/100/100/input >raw:0/0/640/100/output
  642.        sortfile things >>df0:things.log
  643.        list >m df0:             {view output with more}
  644.        copy > df0: ram:         {redirects to NIL: , no output !}
  645.        type S:Startup-sequence >W    {outputs on own window}
  646. @ENDNODE
  647. @NODE Pipes "Anonymous Pipes"
  648. ZShell supports anonymous pipes with background tasks like those in UNICS
  649. and with temporary files like those in Amiga-csh.
  650. @{" General things about pipes " link GeneralPipes}   What are pipes ?
  651. @{" Real pipes " link RealPipes}                   The real thing.
  652. @{" Pseudo pipes " link PseudoPipes}                 Are better in some cases.
  653. @{" Filters " link Filters}                      Something to use pipes with.
  654. @{" Notes " link PipeNotes}                        What else is interesting.
  655. @ENDNODE
  656. @NODE GeneralPipes "General things about Pipes"
  657. Have you ever tried to view the output of a command with an external
  658. text viewer ? Then you probably have tried something like:
  659.     List >T:listing -r dh0: ; MuchMore T:listing ; delete T:listing
  660. (You do not need spaces before and after semicolons)
  661. Using anonymous pipes you simply have to type:
  662.     List -r dh0: | MuchMore
  663. The "|" character is the pipe symbol. This is why they are called
  664. ANONYMOUS pipes: You do not have to specify a filename.
  665. You can leave out the space before and after "|", I just included them
  666. to make it looking better.
  667. In the above example MuchMore stands RIGHT to the pipe symbol. This means
  668. that it gets its input from the output of the command LEFT to the pipe
  669. symbol. You can simulate this by "MuchMore <T:listing" instead of
  670. "MuchMore T:listing".
  671. Not every command supports reading its input from an input redirection,
  672. so not every command can stand RIGHT to | . All commands can be placed
  673. LEFT to | , but with those having no output it does not make sense.
  674. You can use multiple | in one line like:
  675.     List -r dh0: | UUencode | MuchMore
  676. The List command will pass its output to UUencode, this will modify the
  677. data and outputs it to MuchMore which will display the modified output
  678. of the List command.
  679. Commands, like UUencode, which read data from input, modify it and
  680. output the modified data are called @{" filters " link Filters}. They are usually used
  681. RIGHT to or BETWEEN pipe symbols.
  682. Using pipes and filters it is easy to process streams of data like:
  683.     filter1 <infile | filter2 | filter3 | filter4 >outfile
  684. You cannot put multiple commands between pipe symbols, like
  685.     List|UUencode;MuchMore|MuchMore
  686. This will be interpreted as "List|UUencode" and "MuchMore|MuchMore".
  687. @ENDNODE
  688. @NODE RealPipes "Real Pipes"
  689. Real pipes are switched on by default. You can switch them on by using
  690. @{" FLAGS PIPE ON " Link Flags}.
  691. All commands right to pipe symbols are launched as background tasks.
  692. This allows asynchronous data processing.
  693. Real pipes need the PIPE: device to be mounted:
  694.   Make sure you have pipe-handler (OS1.3) or queue-handler (OS2.0+) in L:,
  695.   check DEVS:Mountlist or DEVS:DOSdrivers (OS2.1+) for an entry called
  696.   PIPE: then type "mount pipe:".
  697. If you type in:
  698.     List | MuchMore
  699. in the current shell the command "List >PIPE:ZShellXX" will be started
  700. (XX is a unique number) and a background shell will be launched similar
  701. to the newcli command, which will execute the command
  702. "MuchMore <PIPE:ZShellXX" (XX is the same number as above).
  703. As long as the List command is executed, both shells will be in system
  704. and you can check this out using "show t" from a third shell.
  705. Output of the List command appears directly on the MuchMore screen, you
  706. do not have to wait till the List command finishes.
  707. After the List command has been finished, it waits for the launched shell
  708. to end, just to not confuse you with a prompt. If you do not want to wait,
  709. you can press CTRL-E and you can go on using the first shell. Nevertheless
  710. you cannot start a new pipe until the old one ends.
  711. A drawback however is, that not all commands are able to handle input
  712. out of the PIPE: device, in fact NONE of the internal commands can.
  713. This means that internal commands could not be on the right side of a
  714. pipe symbol if real pipes are used.
  715. You can use MuchMore (by Fridtjof Siebert & Christian Stiens), More
  716. from the Workbench Disk (make sure it is in your path, then use ".more"
  717. to access it) and some other text readers and most @{" filters " link Filters}.
  718. @ENDNODE
  719. @NODE PseudoPipes "Pseudo Pipes"
  720. To distinguish this from real pipes, I call them pseudo pipes.
  721. You can switch them on by using @{" FLAGS PIPE OFF " Link Flags}.
  722. Pseudo pipes use temporary files in T:, so they need T: that is usually
  723. assigned in the Startup-Sequence to a directory in Ram Disk.
  724. The commandline
  725.      List | More
  726. (List and More are internal commands) can be simulated with
  727.      List >T:ZShellXXXX ; More <T:ZShellXXXX ; Delete T:ZShellXXXX
  728. (XXXX is a unique number, being the same here). Note that the temporary
  729. file has to be deleted after use. In fact ZShell does not convert the
  730. commandline, because this would cause trouble in case of failure.
  731. First the List command will be started and its output is written to
  732. the file in T:, what means that this needs memory. After the List command
  733. has been finished, More will be started. This is synchronous processing,
  734. you have to wait for the first command to complete. The file in T: cannot
  735. be deleted before the More command ends, so data stays in memory twice.
  736. Internal commands that can be right to the pipe symbol:
  737. @{" MORE " link More}              @{" EXECUTE ZSHELL " link Execute}
  738. @{" TYPE " link Type}              @{" HTYPE " link HType}
  739. @{" STRINGS " link Strings}           @{" SEARCH " link Search}
  740. Additional the same commands that can be used right to real pipes can
  741. also be used right to pseudo pipes.
  742. Comparing pseudo pipes to real pipes:
  743. + Internal commands can be right to the pipe symbol
  744. + Easier to understand (and, for me, to implement :-)
  745. - Synchronous, so you have to wait
  746. - Needs much memory when handling large quantities of data
  747.   (a background shell needs only about 10KBytes)
  748. Examples:
  749.    dir | more          {view output with MORE}
  750.    info | search dh    {shows the lines for DH0:, DH1: etc.}
  751.    resident|search -3|more   {shows all internal residents using MORE}
  752.    list df0: | htype   {maybe this looks more interesting}
  753. @ENDNODE
  754. @NODE Filters "Filters"
  755. These filters are internal commands and can therefore only be used with
  756. pseudo pipes: @{" STRINGS " link Strings}, @{" SEARCH " link Search}, @{" HTYPE " link HType}, @{" TYPE " link Type}
  757. (TYPE is a no effect filter, because data will not be changed.)
  758. A fine collection of filters that support even real pipes is available
  759. on Aminet in util/cli/0filters.lha (by Bernd "0" Noll).
  760. @ENDNODE
  761. @NODE PipeNotes "Notes about pipes"
  762. * You can use @{" aliases " link Alias} together with pipes; with these:
  763.     alias mm MuchMore
  764.     alias mdir %1 dir $1 \|MuchMore
  765.   (using pseudo pipes you can use More instead of MuchMore) you can use:
  766.     list|mm
  767.     mdir df0:
  768. * To see things happening, try out @{" FLAGS DEBUG ON " link Flags}
  769. * To see all tasks in system, type @{" SHOW T " link Show}
  770. * To see even more things, you can use SnoopDOS (by Eddy Carroll)
  771. @ENDNODE
  772. @NODE Filenamecompletion "Filename Completion"
  773. Filename completion (=FNC) makes typing long filenames and directorynames
  774. easier. It does not matter if you want to type it as command or as
  775. argument. Just type some beginning characters of the desired name
  776. (it also works if you press TAB without typing anything before
  777. or if you give a path) and then press TAB . If there is more than one
  778. possibility that match, it will only be completed as far as all
  779. possibilities match and there are two ways to go further:
  780. 1. Type in the next character(s) then again press TAB .
  781. 2. Press TAB again: The first match will show up. Press TAB again and
  782.    and again to walk through all matches (I call it cycling).
  783.    To enter a directory shown (indicated by the trailing slash) press
  784.    cursor-right. After you type any other key than TAB, it gets out of
  785.    this cycling mode (cursor-right is the only key that will be ignored).
  786.    To get back the commandline before cycling you can press
  787.    shift-cursor-down.
  788. If a filename was fully matched, a space after it will be inserted. If
  789. a directoryname was fully matched, a slash (/) will be inserted after.
  790. If no partial match is found, the screen blinks (display beep).
  791. You can use wildcards with FNC, too. For example you type
  792.   view env:sys/*ilbm
  793. and then press TAB. This will be expanded to
  794.   view env:sys/palette.ilbm
  795. With this you can also check out which files match to a wildcard.
  796. Instead of TAB, you can press CTRL-F, too. This will cause a filerequester
  797. to pop up which shows all matches. Then you can choose one of these
  798. matches or something else.
  799. Maybe you do not want *.info files to be completed. This will avoid
  800. some trouble. Use "config hide *.info" for that or see @{" CONFIG HIDE " Link CTRL}.
  801. If you do not want to see all files that match, you can use
  802. @{" FLAGS MATCH OFF " Link Flags}.
  803. To find out the advantage of FNC it is best to play around with it.
  804. It is really a very convenient and powerful thing !
  805. The contents of the directory last used by FNC is remembered, so it can
  806. be used comfortably on slow floppy disks, too.
  807. See @{" CONFIG FNCSIZE " link ctrl} for more.
  808. For example a directory contains:
  809.   MegaEditExample
  810.   MegaEditExample.info
  811.   MegaViewer
  812.   MoreMegaFiles               {directory}
  813. If you want to change the current directory to MoreMegaFiles you type:
  814.     mo
  815. then press the TAB key. You will see the full name with a slash at the
  816. end. Just press RETURN and you changed it.
  817. To delete MegaViewer you type:
  818.     delete me
  819. and press TAB . You will see "Mega". Now type the V key and
  820. press TAB again. You see "delete MegaViewer ". Press RETURN and
  821. it will be gone.
  822. You want to start MegaEditExample. Type:
  823.     me
  824. and press TAB. Then type E and press TAB. There is no space after the
  825. name. This is because MegaEditExample.info also matches.
  826. Start it by pressing RETURN.
  827. @ENDNODE
  828. @NODE Tips "Tips and Hints"
  829. * Use @{" MORE " Link MORE} instead of @{" TYPE " Link TYPE}.
  830. * Useful @{" aliases " Link alias}:
  831.         alias arexx %1 %2 putmsg $1 0 0 0 0 0 "$2"
  832.   So 'arexx showdvi "tofront"' is the same as the example in @{" PUTMSG " Link PUTMSG}.
  833.   If you want some shortcuts like MessyDOS:
  834.         alias md makedir
  835.         alias ren rename
  836.         alias del delete
  837.         alias dc diskchange
  838.   These are only needed for OS1.3-:
  839.         alias setenv %1 %2 echo >ENV:$1 $2
  840.         alias getenv %1 type ENV:$1
  841.         alias unsetenv %1 delete ENV:$1
  842. * From Workbench assigns are most likely done by clicking an icon:
  843.   For example if you have the assigns below in the script
  844.         failat 10
  845.         assign TEX: dh0:text/pastex
  846.         assign MF: dh0:text/pastex/metafont
  847.         putmsg
  848.   you need to get a PROJECT ICON for that. Now define the default
  849.   tool as ZSH (or ZShell) and a tooltype containing
  850.         WINDOW=
  851.   (case sensitive). That's all. Failat 10 breaks the script if
  852.   an error occurs. Putmsg flashes the screen to indicate that
  853.   everything was successful. No window will be opened.
  854. * CTRL-R and CTRL-T are for moving the cursor one word backwards/forward.
  855.   Probably you would rather like to use Alt-Cursor-Left and
  856.   Alt-Cursor-Right instead. This is not possible to do in ZShell, but
  857.   you can modify your Keymap according to it, because usually Alt-Cursor
  858.   is unused. Get yourself a keymap editor and set it to CTRL-R and to
  859.   CTRL-T (same as hexadecimal 12 and 14).
  860. * A script counting down from 10 to 0 (a bit complicated and slow) :
  861.     failat 11 ; setenv helpenv 11
  862.     lab backtohere
  863.     copy > ENV:helpenv ENV:counter
  864.     eval >ENV:helpenv ^ENV:counter 1 -
  865.     echo "Current number: " ; eval ^ENV:helpenv
  866.     if not error
  867.        skip backtohere
  868.     endif
  869. @ENDNODE
  870. @NODE BUILTIN1 "Builtin Commands for Disk Management"
  871. Following there are descriptions of the standard DOS commands which are
  872. builtin in ZShell (and therefore need not be loaded from disk).
  873. Square brackets [] mean that the argument enclosed in is optional.
  874. A vertical bar | separates multiple possibilities, choose only one.
  875. @{" AddBuffers " Link AddBuffers} drive [number_of_buffers]
  876. @{" Assign " Link Assign} [logical name:] [directory] [ADD|DEFER|PATH|REMOVE]
  877. @{" Cd " Link Cd} [destination]
  878. @{" Copy " Link Copy} [-R] [-S] source1 [source2] ... [destination]
  879. @{" Delete " Link Delete} [-R] [-Q] source1 [source2] [source3] ... [FORCE]
  880. @{" Delete Device " Link Delete2} devicename [name [filesystem]]
  881. @{" Dir " Link Dir} [-R] [-Q] [source1] [source2] ...
  882. @{" FileNote " Link FileNote} file|directory comment
  883. @{" HType " Link HType} source [offset]
  884. @{" Info " Link Info}
  885. @{" Join " Link Join} [-R] [-S] source1 [source2] ... destination
  886. @{" List " Link List} [-R] [-Q] [source1] [source2] ...
  887. @{" Lock " Link Lock} device ON|OFF
  888. @{" MakeDir " Link MakeDir} directory1 [directory2] ...
  889. @{" MakeIcon " Link MakeIcon} filename [icontype]
  890. @{" MakeLink " Link MakeLink} linkname filename [SOFT]
  891. @{" More " Link More} source [line_count]
  892. @{" Move " Link Move} [-R] [-S] source1 [source2] ... [destination]
  893. @{" Protect " Link Protect} [-R] [-S] [file/dir1] [file/dir2] ... [+|-|=|h|s|p|a|r|w|e|d]
  894. @{" Relabel " Link Relabel} drive newname
  895. @{" Rename " Link Rename} source destination
  896. @{" Resident " Link Resident} [command1] [command2] ...
  897. @{" Search " Link Search} file search_string
  898. @{" SetDate " Link SetDate} file|directory [date/time]
  899. @{" Split " Link Split} [-Q] source dest length [offset]
  900. @{" Type " Link Type} source
  901. @ENDNODE
  902. @NODE AddBuffers "AddBuffers"
  903. ADDBUFFERS drive number_of_buffers
  904. * ADDBUFFERS increases disk access speed on the specified drive by
  905.   adding a number of sector cache buffers. Each additional buffer
  906.   reduces memory by about 560 bytes. Generally, 25-30 buffers per
  907.   floppy drive is optimal.
  908. eg.     addbuffers df0: 25
  909.         addbuffers df1: 30
  910. @ENDNODE
  911. @NODE Assign "Assign"
  912. ASSIGN [logical name:] [directory] [ADD|REMOVE|DEFER|PATH]
  913. * ASSIGN will assign a logical device name to a disk directory.
  914. eg.     assign z: df1:zshell_source
  915.   Now if you do a DIR Z: you will get a directory of df1:zshell_source.
  916.   Similarly, the default device names can be reassigned.
  917. eg.     assign libs: df1:libs
  918. * Typing ASSIGN with no parameters, will list the current device
  919.   assignments.
  920. eg.     assign
  921. * Only for OS2.0+:
  922.  "ASSIGN name: REMOVE" or "ASSIGN name: dir REMOVE" removes that assign
  923.  "ASSIGN name: dir ADD" assigns multiple dirs to name:
  924.  "ASSIGN name: pathname DEFER" will become a normal assign when accessed
  925.   the first time. So you can assign to a path that does not exist yet.
  926.  "ASSIGN name: pathname PATH" assigns to a path. Similar to DEFER, but
  927.   will not converted into a normal assign. If you have "assign bla: df0:
  928.   path" and do "list bla:", you will get the directory of the disk
  929.   inserted NOW (!) in df0:.
  930. @ENDNODE
  931. @NODE Cd "Cd"
  932. CD [destination]
  933. * Changes the current directory to "destination". If no parameter
  934.   is given, the current directory's name is shown. It is easier to
  935.   change the directory by simply typing its name (without CD).
  936. eg.     cd ram:
  937.         ram:t               {same as "cd ram:t"}
  938. @ENDNODE
  939. @NODE Copy "Copy"
  940. COPY [-R] [-S] source1 [source2] ... [destination]
  941. * COPY copies all source files or files in the source directories to the
  942.   destination directory. If the destination directory does not exist, it
  943.   will be created. If no destination is given (in this case you can specify
  944.   only one source file/dir ofcourse), the current directory will be taken.
  945. * You can use @{" wild cards " link Wild_card} to specify files.
  946. * The filedate, filecomment and protection-bits are copied with it.
  947. * With @{" Option -R " link Option} given, subdirectories and the files and
  948.   directories in there are also copied (recursive copying).
  949.   If you have the @{" ALL FLAG " link Flags} set, you can use ALL as last
  950.   argument instead of -R.
  951. * With @{" Option -S " link Option} given, it sorts. But who needs that ?
  952. Note 1: Copying will be done in 50KBytes blocks. This should be a good
  953.   value. You can change it with @{" CONFIG COPYSIZE " link ctrl}.
  954. Note 2: You can use @{" option " link option} ALL instead of -R .
  955. eg.     copy c:dir df1:c
  956.         copy dir list type cd df1:c
  957.         copy -r df0:devs df1:devs
  958.         copy -r source:*.s ram:
  959.         copy df0: df1:          {only copy the files in df0: to df1:}
  960. * You can also copy a file to a file. This is like copying to a dir and
  961.   then renaming. Date, comment and bits are not copyied with it.
  962. eg      copy df0:fred ram:wilma
  963.   With that you can print a file etc.
  964. eg.     copy file PRT:
  965.         copy CON: barney
  966. @ENDNODE
  967. @NODE Delete "Delete"
  968. DELETE [-R] [-Q] source1 [source2] [source3] ... [FORCE]
  969. * Deletes one or more files or directories ("source1","source2",...).
  970. * "source" can be a @{" wild card " link Wild_card} file description.
  971. * If you specify the -r @{" option " Link option} when deleting a directory,
  972.   then all subdirectories are recursively deleted also. Otherwise (if the -r
  973.   option is not given) only the files in the specified directory are deleted.
  974. * To be safe, delete requests you to really delete a file. You can answer
  975.   with "Y" (yes) or RETURN if you want this file to be deleted
  976.        "N" (no) if you do not want this file to be deleted
  977.        "A" (all) if you do not want to be asked anymore
  978.        "Q" (quit) if you want to abort deleting.
  979.   To avoid asking, use option -q , but be careful !
  980. * Ever got the problem with thousands of delete-protected files ?
  981.   Solution is simple: Use FORCE as last option.
  982. NOTE 1: "delete RAM:BLA" (BLA is a directory) tries
  983.   to delete the directory "BLA", not the files in there !
  984.   Use "delete RAM:BLA/*" (deletes only the files in there)
  985.   or "delete -r RAM:BLA" (deletes all files and directories inside,
  986.   then tries to delete BLA itself) for that !
  987. NOTE 2: You can use @{" option " link option} ALL instead of -R .
  988. WARNING 1: You can hardly get back what you have deleted !
  989.   So be careful, especially when using the -r option !
  990.   (Try DISKSALV for getting lost files back, DO NOT USE DISCDOCTOR!)
  991. WARNING 2: To delete (hard- or soft-)links you have to use @{" wild cards " link wild_card} !
  992.   So instead of "delete c:linkname" use with OS1.3- "delete c:linkname|"
  993.   and with OS2.0+ "delete c:(linkname)".
  994. eg.     delete fred wilma barney betty dino
  995.         delete df0:devs df1:c df1:data ram:
  996.         delete menu/* force
  997.         delete -r devs:
  998.         delete -r df1:  {better use "delete device df1:"}
  999. @ENDNODE
  1000. @NODE Delete2 "Delete Device"
  1001. DELETE DEVICE devicename [name [filesystem]]
  1002. OS2.0+ only !
  1003. * Has the same effect as "FORMAT DRIVE device NAME name QUICK NOICONS".
  1004.   devicename is something like DF0: etc., but better not DH0: !
  1005.   The name and the filesystem of the disk will be kept the same, except
  1006.   you specify new ones. See @{" INFO " link Info} on how filesystems look like.
  1007. eg.: You have an Oldfilesystem- (OFS) disk and want to get a Fastfilesystem-
  1008.     (FFS) disk out of it. No need to format the whole disk ! Use
  1009.         delete device df0: empty ffs
  1010. @ENDNODE
  1011. @NODE Dir "Dir"
  1012. DIR [-Q] [-R] [source1] [source2] ...
  1013. * Lists the directory of the "source" to the screen. Hitting space
  1014.   will pause the listing and backspace will continue it. Files are
  1015.   shown with their size in bytes. DIR lists the current directory
  1016.   if no parameter is given. If "source" is a filename, then only
  1017.   that file is listed. If the @{" option " Link option} "-q" is not given, the filenames
  1018.   will be sorted alphabetically. With the @{" option " Link option} "-R" given
  1019.   it will @{" list " Link List} recursive.
  1020. * All files/dirs with the H-bit (see @{" PROTECT " Link PROTECT}) set, will not be shown.
  1021.   All files that are ignored by @{" FILENAMECOMPLETION " Link FILENAMECOMPLETION} are also hidden.
  1022. * If it is a link, it shows H (for hardlinks) or S (for softlinks) after
  1023.   the filesize. See @{" MAKELINK " link MakeLink}.
  1024. eg.     dir df0:
  1025.         dir -q devs:printers/hp*
  1026. @ENDNODE
  1027. @NODE FileNote "FileNote"
  1028. FILENOTE file|directory comment
  1029. * FILENOTE creates or changes a comment of the file or directory.
  1030.   This comment can be up to 116 characters long and can be displayed
  1031.   using the @{" LIST " Link LIST} command. It is useful if the filename does not say
  1032.   what for this file is. Add a comment to this file and you will
  1033.   forever know what this file does.
  1034. eg.     filenote devs:mountlist "This is used by the mount command"
  1035. @ENDNODE
  1036. @NODE HType "HType"
  1037. HTYPE source [offset]
  1038. * HTYPE outputs a hex listing of the file specified. Output is the
  1039.   same as the M command. SPACE pauses the listing, BACKSPACE
  1040.   gets it going again, and CTRL-C will abort the listing.
  1041. * "HTYPE source offset" starts to display the file after "offset" bytes.
  1042. eg.     htype c:list
  1043. @ENDNODE
  1044. @NODE Info "Info"
  1045. * Lists lots of information about all available volumes (like disks).
  1046.   These columns mean:
  1047.   NAME: Name of the device containing the volume
  1048.   UNIT: Unitnumber, not very interesting
  1049.   SYS:  Filesystem, can be one of:
  1050.         OFS : Oldfilesystem (old fashioned and slow)
  1051.         FFS : Fastfilesystem (needs OS2.0+)
  1052.         INO/INF : International OFS/FFS
  1053.         DCO/DCF : Directory Cache OFS/FFS (needs OS3.0+)
  1054.         MSD : CrossDOS Filesystem (MessyDOS)
  1055.         ??? : Unknown
  1056.   SIZE: Maximum useable size of the Volume in KBytes (1024 Bytes)
  1057.   FREE: Free/useable size in KBytes
  1058.   FULL: Ratio between used size and maximum size
  1059.   BLOCK: Size of a single block in Bytes
  1060.   STATUS: Says if it is possible to write to that volume
  1061.   ERR:  Number of soft errors, I only saw 0 yet
  1062.   VOLUME: Name of the volume (name of the disk).
  1063. * Note: It would not make sense to show the free size in Bytes,
  1064.   because space can only be allocated in whole blocks and one
  1065.   block is at least 488 Bytes large.
  1066. eg.     info
  1067. @ENDNODE
  1068. @NODE Join "Join"
  1069. JOIN [-R] [-S] [sourcefile1] [sourcefile2] ... destfile
  1070. * JOIN concatenates one or more files to form a new file (destfile).
  1071. * @{" wild cards " link Wild_card} are supported.
  1072. * See  @{" COPY " link Copy} for more.
  1073. eg.     join fred.doc roy.doc dog.doc mydocs.doc
  1074. @ENDNODE
  1075. @NODE List "List"
  1076. LIST [-R] [-Q] [source1] [source2] ...
  1077. * Lists the directory of the "source" to the screen. Hitting space
  1078.   will pause the listing and backspace will continue it.
  1079. * LIST acts similar to @{" DIR " Link DIR}, but outputs more information:
  1080.   - Hidden files will be shown
  1081.   - Shows the date and time of the last change. See @{" DATE " link Date}.
  1082.   - Shows the protection-bits. See @{" PROTECT " Link PROTECT}.
  1083.   - If available, the comment will be shown. See @{" FILENOTE " Link FILENOTE}.
  1084.   - If it is a link, it shows where it is linked to. See @{" MAKELINK " link MakeLink}.
  1085.     (Note:softlinks are resolved by ReadLink(), hardlinks by simply Lock())
  1086. * LIST supports recursive listing. That means the contents of all
  1087.   subdirectories are shown. To use it, specify the @{" -r option " Link option}.
  1088. * With the @{" -q option " Link option} given, it does not sort nor print
  1089.   comments and links.
  1090. eg.     list
  1091.         list sys:system
  1092.         list -q df0:
  1093.         list -r -q *.info    {show all INFO-files in the current and
  1094.                               in the sub-directories}
  1095.         list -r ram:~*.info  {show all except *.info files in RAM:}
  1096. @ENDNODE
  1097. @NODE Lock "Lock"
  1098. LOCK device ON|OFF
  1099. * "LOCK device ON" locks the write-access to a device
  1100. eg.     lock df0: on
  1101.   will make it impossible to write to or change something on the
  1102.   disk inserted in DF0:
  1103. * "LOCK device OFF" makes write-access to a device possible again.
  1104. eg.     lock dh0: on
  1105.         lock dh0: off
  1106. @ENDNODE
  1107. @NODE MakeDir "MakeDir"
  1108. MAKEDIR [directory1] [directory2] ...
  1109. * Creates one or more directories of the names specified.
  1110. eg.     makedir temp
  1111.         makedir c l s libs devs fonts
  1112.         makedir devs/printers ram:c
  1113. @ENDNODE
  1114. @NODE MakeIcon "MakeIcon"
  1115. MAKEICON filename [icontype]
  1116. OS2.0+ only !
  1117. * Makeicon creates a default icon for the file "filename". "icontype" can
  1118.   be one of: DISK, DRAWER, TOOL, PROJECT, GARBAGE, DEVICE, KICK or APPICON
  1119.   "filename" is without appending .info.
  1120.   Note that DEVICE and APPICON will not be available on most systems.
  1121. * OS3.0+ only: Makeicon without icontype pops up the information-window
  1122.   of Workbench.
  1123. eg.     makeicon barney tool
  1124.         makeicon sys:libs drawer  {"makeicon libs: drawer" will not work}
  1125.         makeicon sys:system/format
  1126. @ENDNODE
  1127. @NODE MakeLink "MakeLink"
  1128. MAKELINK linkname filename [SOFT]
  1129. OS2.0+ only !
  1130. * Makelink creates a Hardlink or Softlink to the file or directory
  1131.   "filename". "linkname" must be a filename, that does not exist yet.
  1132.   You can use links like the file/directory itself, but they need nearly
  1133.   no additional diskspace. In most cases you would use Hardlinks.
  1134. * If you delete a file a Hardlink is linked to, the Hardlink will become
  1135.   the file itself. Hardlinks cannnot work accross devices, use Softlinks
  1136.   for that. (Hardlinks are resolved by the filesystem.)
  1137. * Softlinks are links to a path, that is checked every time when accessed,
  1138.   so a link to DF0: depends on the disk inserted in DF0: .
  1139.   (Softlinks are resolved by AmigaDOS)
  1140.   I wonder why Softlinks are not supported by the commands in the C:
  1141.   directory even of Workbench 3.0 ? A bit old fashioned !
  1142. !WARNING: To delete (hard- or soft-)links you have to use @{" wild cards " link wild_card} !
  1143. !  So instead of "delete c:linkname" use with OS1.3- "delete c:linkname|"
  1144. !  and with OS2.0+ "delete c:(linkname)".
  1145. eg.     makelink muchmore ppmore
  1146.         makelink sys:commands c:
  1147.         makelink readme df0:readme soft  {so with "more readme" you will
  1148.     see the readme-file on the disk currently inserted into DF0: }
  1149. @ENDNODE
  1150. @NODE More "More"
  1151. MORE source [line_count]
  1152. * MORE acts as a simple (ANSI) text file viewer. By default, it will
  1153.   show some lines of a text file, then wait for some user input.
  1154. eg.     more readme
  1155.  *After pressing "H" you get some Help information.
  1156.  *To move around in the text, you can use the CURSOR-KEYS:
  1157.     UP        : Go one line up
  1158.     DOWN      : Go one line down
  1159.     LEFT      : Go one page up
  1160.     RIGHT     : Go one page down
  1161.     SHIFT-UP  : Go to the top of the text
  1162.     SHIFT-DOWN: Go to the bottom of the text
  1163.   You can also use the keys 1,2,3,7,8 and 9 of your numeric keypad.
  1164.   SPACE does the same as SHIFT-DOWN, BACKSPACE the same as SHIFT-UP.
  1165.  *The key "S" will prompt you what to Search for. If you just press
  1166.   RETURN, then the last item will be searched for. Searching begins
  1167.   at the second top line shown. If the item is found, the line, it
  1168.   is in, is displayed as the first line.
  1169.  *The key "N" searches for Next occurence of the search string
  1170.  *The key "W" Writes the text to a file. If you enter PRT: as filename,
  1171.   the text is send to the printer. Press just RETURN to cancel.
  1172.  *Press "J" to Jump to a position you can give in %.
  1173.  *Press "R" after you have Resized the window (or to Redraw the window
  1174.   for another reason).
  1175.  *Press "Q" or "ESC" to quit MORE.
  1176.  *Typing any other key will be ignored.
  1177. All keys except the numeric keypad, SPACE, BACKSPACE and ESC can be
  1178. redefined using @{" CONFIG MOREKEYS " link ctrl}.
  1179. * Specifying the optional line count will allow you to show more or
  1180.   less than the default number of lines, that will fit exactly on the
  1181.   window. Useful when using @{" FLAGS CUT OFF " Link Flags}.
  1182. eg.     more contents 12
  1183.         more super.doc 25
  1184. @ENDNODE
  1185. @NODE Move "Move"
  1186. MOVE [-R] [-S] source1 [source2] ... [destination]
  1187. * This is very similar to the @{" copy-command " link copy}, but all files/directories
  1188.   copyied will be deleted afterwards. If an error happens, the source will
  1189.   not be deleted. If it was OK, you will see "... copyied"
  1190. * If source and destination are on the same device it uses @{" rename " link rename}
  1191.   instead. This is quicker and needs less disk accesses. Then you will
  1192.   see "...moved".
  1193. * Note the difference between "move dir" and "move dir/*".
  1194. eg.     move ram:a ram:b
  1195.         move -r df0:* df1:
  1196.         move c:mount devs:
  1197. @ENDNODE
  1198. @NODE Protect "Protect"
  1199. PROTECT [-R] [-S] filename1 [filename2] ... [+|-|=|h|s|p|a|r|w|e|d] [+|...
  1200. * Allows you to alter/see the protection bits associated with a file
  1201.   or a directory. To see it, you can also use @{" LIST " link List}.
  1202.   You can use @{" wild cards " link Wild_card} to process multiple files.
  1203. * See @{" COPY " link Copy}  how to use -r and -s.
  1204. * PROTECT filename +bits_to_set -bits_to_clear
  1205.   Sets all bits_to_set and resets all bits_to_clear.
  1206.   You can give one + or one - or both or both not.
  1207. * PROTECT filename =bits_to_be
  1208.   Sets all bits_to_be and resets all other bits
  1209. eg.     protect game +hp -rwd
  1210.         protect monitor =srwe
  1211.         protect -r df0:* -d
  1212. Bits:   "h"     hidden  V1.3
  1213.         "s"     script  V1.3
  1214.         "p"     pure    V1.3
  1215.         "a"     archive V1.3 -> is reset when file is changed
  1216.         "r"     readable
  1217.         "w"     writable
  1218.         "e"     executable   -> will be checked before executing
  1219.         "d"     deletable
  1220. @ENDNODE
  1221. @NODE Relabel "Relabel"
  1222. RELABEL drive newname
  1223. * RELABEL renames the disk specified with the newname given.
  1224. eg.     relabel Empty: MY_DISK
  1225.         relabel df0: FISHMONGER
  1226. @ENDNODE
  1227. @NODE Rename "Rename"
  1228. RENAME source destination
  1229. * Renames the file or directory of name "source" to that of
  1230.   "destination". You can use this to move files on a disk.
  1231. eg.     rename df0:c/list df0:ls        {moves and renames}
  1232.         rename ed Editor                {just renames}
  1233. @ENDNODE
  1234. @NODE Resident "Resident"
  1235. RESIDENT [command1] [command2] ...
  1236. * RESIDENT allows you load commands into memory, such that they
  1237.   will execute immediately, rather than be loaded from disk all the
  1238.   time. The benefit of RESIDENT over saving commands on the RAM:
  1239.   disk is that only one copy of the command is in memory all the
  1240.   time. RAM: based commands will use up twice as much memory when
  1241.   the command is being executed.
  1242. * The limitation of RESIDENT is that only certain commands will
  1243.   work. Generally, all commands which have their PURE bit (see
  1244.   @{" PROTECT " Link PROTECT}) set can be made RESIDENTABLE. However, RESIDENT
  1245.   does not check whether the PURE bit is set before loading, and
  1246.   hence you can try out commands to see if they work. They'll
  1247.   always work the first time. Its only when executing the 2nd
  1248.   time that the Amiga will likely crash.
  1249.   Note: Crunched programs will most likely not work.
  1250. * Typing RESIDENT with no parameters will show the current list
  1251.   of resident commands:
  1252.     ADRESS is useful for programmers
  1253.     USECOUNT says how many times it is used right now
  1254.              ROM internal residents have negative values
  1255.     NAME means the name  (hard to guess :)
  1256. * Typing one or more command names after RESIDENT will make those
  1257.   commands resident. ZShell will search the command search @{" path " Link path}
  1258.   to try and find them.
  1259. eg.     resident c/list c/cd c/date c/avail
  1260.         resident ed
  1261. @ENDNODE
  1262. @NODE Search "Search"
  1263. SEARCH file search_string
  1264. * SEARCH searches for the search_string in the file. The file can
  1265.   be a binary (eg. executable) or a text. Each occurance
  1266.   will be printed on the window with highlighted search_string.
  1267.   If the file is a text, the whole line will be printed.
  1268.   If it is a binary file, it will be printed from the occurance
  1269.   to the next NULL or LF.
  1270. * Searching is case independent (of course!).
  1271. * To search for a string at the beginning of a line (textfile only)
  1272.   put a point (.) before the search_string.
  1273. eg.     search zshell.doc "binary (eg."
  1274.         search s:startup-sequence .assign
  1275.           {show all assigns, but not "resident assign"}
  1276.         search c:mount $ver:    {show version number and date,
  1277.                             should work with all newer executables}
  1278. @ENDNODE
  1279. @NODE SetDate "SetDate"
  1280. SETDATE file|directory [date/time]
  1281. * SETDATE changes the date-of-last-change (DOLC) of a file or directory.
  1282.   The DOLC can be shown by simply listing this file with @{" LIST " Link LIST}.
  1283. * SETDATE with no date/time given sets the DOLC to the systemtime
  1284.   (see @{" DATE " Link DATE},@{" SETCLOCK " Link SETCLOCK}).
  1285. * If you want to set the DOLC to a special date you have to specify
  1286.   the date or time or both in a format described at @{" DATE " Link DATE}.
  1287. eg.     setdate ram:newthings
  1288.         setdate devs:mountlist 21.8.71      {very old}
  1289.         setdate murks 18:24:12 12-24-96     {future}
  1290. @ENDNODE
  1291. @NODE Split "Split"
  1292. SPLIT [-Q] source dest length [offset]
  1293. * SPLIT is the opposite of @{" JOIN " link Join}.
  1294.   It splits up a (large) source file into several smaller pieces which
  1295.   get their name from "dest" and an automatically appended two digit
  1296.   number. The asking between the single files allow to change floppy
  1297.   disks and makes it possible to split a large file directly on multiple
  1298.   floppy disks. See @{" delete " link delete} for more about that.
  1299.   (The source file does not need to fit into memory.)
  1300. eg.     split aminet.index df0:index 750000
  1301.   {assuming that aminet.index is 2MB big, this creates df0:index01
  1302.   df0:index02 and df0:index03 }
  1303. other egs.  split -q bigfile small 10000    {does not ask}
  1304.             split bigfile small 10000 5000  {skip the first 5000 bytes}
  1305. @ENDNODE
  1306. @NODE Type "Type"
  1307. TYPE source
  1308. * Prints to the screen the ASCII/ANSI text file specified as "source".
  1309.   Hitting any key will pause the listing. Backspace will restart it.
  1310.   CTRL-C will abort the listing.
  1311. * Use @{" MORE " Link MORE} instead of TYPE, if possible.
  1312. eg.     type readme
  1313. @ENDNODE
  1314. @NODE BUILTIN2 "Builtin Commands for Scripts and Controlling"
  1315. Following there are descriptions of the other commands which are
  1316. builtin in ZShell (and therefore need not be loaded from disk).
  1317. Square brackets [] mean that the argument enclosed in is optional.
  1318. A vertical bar | separates multiple possibilities, choose only one.
  1319. @{" Alias " Link Alias} [variable] [definition]
  1320. @{" Ask " Link Ask} [question]
  1321. @{" Avail " Link Avail} [-C]
  1322. @{" Border " Link Border} ON|OFF [number]
  1323. @{" Cls " Link Cls}
  1324. @{" Date " Link Date} [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  1325. @{" Echo " Link Echo} [string]
  1326. @{" Else " Link Else}
  1327. @{" EndCLI " Link EndCLI} [-C]
  1328. @{" EndIf " Link EndIf}
  1329. @{" Eval " Link Eval} expression
  1330. @{" Execute " Link Execute} [ZSHELL] source
  1331. @{" FailAt " Link FailAt} [failat_level]
  1332. @{" Fault " Link Fault} [error_number]
  1333. @{" Help " Link Help1} [topic]
  1334. @{" If " Link If} [NOT][WARN][ERROR][FAIL][EXISTS file]
  1335. @{" Lab " Link Lab} label
  1336. @{" MemClk " Link MemClk} ON|OFF|ALARM
  1337. @{" NewCLI " Link NewCLI} [-Wnew_window] [-Sstart_script] [-Ccommand] [-N] [-Hhelpfile] [-E]
  1338. @{" Path " Link Path} [-C] [path1] [path2] [path3] ...
  1339. @{" Prompt " Link Prompt} [string]
  1340. @{" Quit " Link Quit} [error_code]
  1341. @{" Review " Link Review} [bytesize|-C|-Sfilename]
  1342. @{" Run " Link Run} commandline
  1343. @{" SetClock " Link SetClock} LOAD|SAVE
  1344. @{" Skip " Link Skip} label
  1345. @{" Stack " Link Stack} [size]
  1346. @{" UnAlias " Link UnAlias} [alias1] [alias2] [alias3] ...
  1347. @{" Wait " Link Wait} timeout
  1348. @{" Comments " Link Comments}
  1349. @ENDNODE
  1350. @NODE Alias "Alias"
  1351. ALIAS [variable] [definition]
  1352. * ALIAS assigns a variable name to a definition. The variable name
  1353.   can be up to 15 characters long, and the definition can be up to
  1354.   about 360 characters long.
  1355. * Typing ALIAS with no parameters at all, will generate a list of all
  1356.   current alias definitions.
  1357.   eg.   alias
  1358. * Aliasing of Function Keys
  1359.   eg.   alias f1 ed df0:s/startup-sequence^M
  1360.   This example assigns the unshifted F1 key to "ed df0:s/startup-sequence"
  1361.   with following return. Note that the ^M characters puts an auto
  1362.   carriage return in the definition.
  1363.   eg.   alias F10 cd df0:^M
  1364.   This sets shifted F10 to "cd df0:<CR>".
  1365.   You can use quotes to make it look better:
  1366.         alias f2 "cd df1:^M"
  1367.         alias f4 "genim2 "
  1368.         alias F9 "scribble df0:text/"
  1369.   If you want to use a semicolon in the alias, you need to use quotes:
  1370.         alias f1 "a68k z.a;blink z.o to z^M"
  1371.   or leave away the quotes and use a backslash before the semicolon:
  1372.         alias f1 a68k z.a\;blink z.o to z^M
  1373. * Aliasing of commands
  1374.   eg.   alias mv rename
  1375.   This allows an alternate name for rename. i.e. mv.
  1376.   So you could type
  1377.         mv oldname newname      {to rename oldname to newname}
  1378.   eg.   alias as a68k
  1379.         alias pp powerpacker
  1380.         alias go "a68k zsh.s;blink zsh.o to zsh"
  1381.         alias cped copy df0:c/ed
  1382.   You would use this last alias, if you need to copy a particular
  1383.   file a lot. So, to copy c/ed to ram: use:
  1384.         cped ram:
  1385. * You can also pass external parameters to an alias.
  1386.   eg.   alias al "%1 a68k $1.s;blink $1.o to $1"
  1387.   Typing
  1388.         al test
  1389.   will assemble test.s using a68k, then blink test.o to become test.
  1390. You can specify upto eight parameters to pass to a command alias.
  1391. At the start of the alias definition, specify the parameters to pass
  1392. with the variables %0 thru %7. These need not be in sequence. The
  1393. first %n will be assigned to the first parameter, the 2nd %n to
  1394. the 2nd parameter etc.
  1395. Insert the corresponding variables $0 thru $7 at the points in the
  1396. alias definition where that parameter is to appear.
  1397. eg.     alias disp %1 %2 %3 echo "$3 $2 $1"      {is the same as: }
  1398.         alias disp "%1 %2 %3 echo "$3 $2 $1""    {note the quotes}
  1399.         alias cram %0 %1 %2 %3 copy $0 $1 $2 $3 ram:
  1400.         alias go %5 %1 %6 %2 echo "1st-$5 2nd-$1 3rd-$6 4th-$2"
  1401. * Command aliases can be nested to nearly unlimited levels.
  1402.   eg.   alias clear echo ^L\;alias cdir "%1 clear;cd $1;dir"
  1403. * An important point about aliases, is that you can redefine the
  1404.   existing internal command names.
  1405.   eg.   alias help "type help_screen"
  1406.   This would make it so that pressing HELP or typing H E L P would
  1407.   not generate the standard help command list, but would type the
  1408.   file called  help_screen to the screen. Similarly
  1409.   eg.   alias copy c:copy       {replace copy by disk-based copy}
  1410.         alias info c:dfree
  1411.         alias list .list        {replace list by disk-based list}
  1412. * See UNALIAS for how to remove alias definitions.
  1413. @ENDNODE
  1414. @NODE Ask "Ask"
  1415. ASK [question]
  1416. * ASK prompts the user with a question requiring a Yes or No
  1417.   answer. If the first letter of the users response is "Y", ASK
  1418.   returns code WARN. Responding "E" returns ERROR, "F" returns
  1419.   FAIL. Any other letter will result in return code OK.
  1420.   The question can include ASCII characters as well as control
  1421.   codes as per the @{" ECHO " Link ECHO} command.
  1422. eg.     ask "Do you want commands copied to ram? "
  1423.         if warn
  1424.                copy c: ram:
  1425.         endif
  1426. Note: You can @{" redirect " Link redirect} the ANSWER to a file by redirecting the OUTPUT.
  1427. eg.     ask >ENV:CallIt        {The answer is written to CallIt}
  1428. @ENDNODE
  1429. @NODE Avail "Avail"
  1430. AVAIL [-C]
  1431. * AVAIL shows the available memory as:
  1432.   1.Total chip memory free,
  1433.   2.Total fast memory free,
  1434.   3.Total memory free.
  1435. * With @{" option " Link option} "-c" given, it tries to free unused memory
  1436.   (remove unused libraries, devices and the help manual)
  1437. eg.     avail
  1438.         avail -c
  1439. @ENDNODE
  1440. @NODE Border "Border"
  1441. BORDER ON|OFF [number]
  1442. * Switches the border of the window on or off. If the border is off
  1443.   there will fit some more characters in a line; this can be useful
  1444.   when viewing texts with @{" MORE " Link MORE}.
  1445. * If you run OS1.3-, you should do a @{" CLS " Link CLS} or "echo ^L" after
  1446.   using BORDER OFF.
  1447. * If you specify a number after ON or OFF, the window is resized as
  1448.   large as possible. The number means the wanted distance of the
  1449.   window top to the screen top in pixels. By specifying a negative
  1450.   value the window will just not hide the screens menu bar.
  1451. eg.     border off
  1452.         border on 0         {fills full screen}
  1453.         border off -1       {does not hide the menu bar}
  1454.         border on 10;cls    {with OS1.3-}
  1455. @ENDNODE
  1456. @NODE Cls "Cls"
  1457. * CLS clears the window.
  1458.   It also resets the consolehandler, so if you see lots of funny
  1459.   characters on the window, try CLS.
  1460. * You can do the same by using "echo ^[c".
  1461. * CTRL L only clears the window (same as "echo ^L").
  1462. eg.     cls
  1463. @ENDNODE
  1464. @NODE Date "Date"
  1465. DATE [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  1466. * DATE without arguments shows the actual date and time (systemtime).
  1467. * You can specify one or two arguments to set date or time or both.
  1468.   The time format must be in HOUR:MINUTE:SECOND . Do not forget the
  1469.   colon (:) between. Give only one or two digit numbers.
  1470.   There exists two formats for setting the date. First is
  1471.   DAY.MONTH.YEAR . Second is MONTH-DAY-YEAR . Use only one or two
  1472.   digit numbers.
  1473. eg.     date
  1474.         date 14:15:00         {quarter past two PM}
  1475.         date 12.5.94          {12th of May in 1994}
  1476.         date 3-30-88 8:12:45  {30th of March in 1988 in the morning}
  1477. @ENDNODE
  1478. @NODE Echo "Echo"
  1479. ECHO [string]
  1480. * Prints the "string" to the screen. If you want spaces in the
  1481.   string, make sure the whole string is enclosed in quotes. If you
  1482.   want to print special control characters (eg. ctrl-L clear screen)
  1483.   then prefix the control letter with a ^ character. If you want to
  1484.   print double quotes, then use the \ character before the qoutes.
  1485.   If you want to print some special characters like the CSI ($9B),
  1486.   you can put a (hexa-)decimal number after the ^ character; you can
  1487.   separate it from the next character by a point (.) . Do not forget
  1488.   the ^J at the end of a line.
  1489. eg.     echo hello^J
  1490.         echo "Hello world !"
  1491.         echo Hello world !
  1492.         echo "^Lthe screen was just cleared^J"
  1493.         echo "^Lline 1^Jline 2^Jline 3^J"
  1494.         echo "these are double quotes ->\"^J"
  1495.         echo ^*33mColor^*32mful^J
  1496.         echo ^*4mUnderlined^*0mNormal^J
  1497. * Some common control codes are:
  1498.   ^7    ^G      bell (makes a DisplayBeep)
  1499.   ^10   ^J      linefeed.
  1500.   ^12   ^L      clear screen.
  1501.   ^13   ^M      carriage return.
  1502.   ^24   ^X      clear line.
  1503.   ^27   ^[      escape.
  1504.   ^$9b  ^*      CSI (command sequence introducer).
  1505. @ENDNODE
  1506. @NODE Else "Else"
  1507. * ELSE marks the middle of an @{" IF " Link IF} statement. All statements
  1508.   following it, and before the @{" ENDIF " Link ENDIF} statement will be executed
  1509.   only if the IF condition is FALSE. See @{" IF " Link IF} for usage.
  1510. @ENDNODE
  1511. @NODE EndCLI "EndCLI"
  1512. ENDCLI [-C]
  1513. * Exits you from ZShell back to the AmigaDOS CLI prompt or Workbench.
  1514. * If the @{" option " Link option} "-c" was specified, it will clear ZShell as a
  1515.   @{" resident " Link resident}: only in low memory situations needed.
  1516. * Instead of using ENDCLI you can simply press the ESC key or click
  1517.   on the close gadget, if available.
  1518. eg.   endcli
  1519.       endcli -c
  1520. @ENDNODE
  1521. @NODE EndIf "EndIf"
  1522. ENDIF
  1523. * ENDIF marks the end of an IF statement. See @{" IF " Link IF} for usage.
  1524. @ENDNODE
  1525. @NODE Eval "Eval"
  1526. EVAL expression
  1527. OVERVIEW
  1528. ========
  1529.   Operators:
  1530.   + Add
  1531.   - Subtract
  1532.   * Multiply
  1533.   / Divide
  1534.   & Logical and
  1535.   ! Logical or
  1536.   = Poke into memory
  1537.   ? Peek out of memory
  1538.   Prefixes:
  1539.   + Positive number
  1540.   - Negative number
  1541.   % Binary number
  1542.   $ Hexadecimal number
  1543.   & Hexadecimal APTR converted to BPTR
  1544.   ! Hexadecimal BPTR converted to APTR
  1545.   ^ Filename containing number
  1546. * EVAL evaluates the "expression" as a reverse polish expression,
  1547.   and displays the answer in decimal and hex notation. Reverse
  1548.   Polish Notation (RPN) is used in Forth and in Hewlett Packard
  1549.   calculators (I have a HP48GX which has really a great functionality,
  1550.   but unfortunately is a one-way product: If something is defective, you
  1551.   have to throw it away in most cases).  It is based on how arithmetic
  1552.   is actually done at the lowest possible level. RPN allows calculating
  1553.   complex expressions without using brackets.
  1554. eg.     eval 4 5 +
  1555.   This gives the answer 9. When a number is found, it is "pushed"
  1556.   onto the arithmetic stack. The + always adds the last two numbers
  1557.   on the stack.
  1558. eg.     eval 7 2 3 + -
  1559.   This gives the answer 2. It is the same as (7 - (2 + 3)). See,
  1560.   7 is first pushed onto the stack, followed by 2, then 3. The +
  1561.   adds together the 2 and 3 and leaves the result 5 on the stack.
  1562.   Which means that the number 7 followed by 5 are left on the
  1563.   stack. The - subtracts the last entry (5) on the stack from the
  1564.   one before it (7), leaving the result 2.
  1565. eg.     12 * (3 + 9)                    > eval 12 3 9 + *
  1566.         (15 - 4) * (6 + 18)             > eval 15 4 - 6 18 + *
  1567.         (6 * ((87 + 13) / (2 * 25)))    > eval 6 87 13 + 2 25 * / *
  1568. * EVAL only performs 32 bit integer arithmetic.
  1569.   Negative numbers are prefixed with - .(hexadecimal they are
  1570.   shown as a 31 bit integer with bit 32 set, as usual)
  1571.   Prefixing positive numbers with + is optional.
  1572. eg.     eval +5 -3 +    {results in 2  hex:$00000002}
  1573.         eval -5 3 +     {results in -2 hex:$fffffffe}
  1574. * EVAL supports decimal, hexadecimal and binary  numbers.
  1575.   If you prefix the number with $, the number is hex
  1576.   If you prefix the number with %, it is binary.
  1577. Programmers: For BPTR-APTR conversion you can use & to specify
  1578.   a hexadecimal APTR when asked for a BPTR and vice versa with !.
  1579. eg.     eval $c00000 $a0 16 * +
  1580. * EVAL can also be used to perform base conversions (to dec or hex)
  1581. eg.     eval $ca
  1582.         eval %10110001
  1583.         eval 45
  1584.         eval &5a8
  1585. *  The & allows logical AND'ing. And ! allows logical OR'ing.
  1586.   The ? is similar to PEEK in BASIC.
  1587.   Conversely, = is similar to POKE in BASIC
  1588. eg.     eval $80 $21 $08 ! ! $aa &
  1589.         eval $67 %11001011 &
  1590.         eval $c00000 ?
  1591.   This prints out the long word in memory locations $c00000 - $c00003.
  1592.         eval $aa55aa55aa $40000 =
  1593.   This pokes the long word $aa55aa55aa into locations $40000 thru $40003
  1594.   and prints out what was in before.
  1595. * For environment handling you can specify the value of an
  1596.   environment variable with ^ followed by the name.
  1597.   To store the result in a variable, @{" redirect " Link redirect} the output.
  1598. eg.     eval >ENV:aa ^ENV:bb 1 +
  1599.   This adds 1 to the value in ENV:bb and stores the result in ENV:aa
  1600. * If the result was 0 an error (fail-level 10) will be returned.
  1601.   If it was negative, a warn (5) returns. (Not when redirecting output)
  1602. @ENDNODE
  1603. @NODE Execute "Execute"
  1604. EXECUTE [ZSHELL] source
  1605. * "EXECUTE source" executes the AmigaDOS script file of name "source"
  1606.   using an AmigaDOS shell, so no compatibility problems should occur.
  1607.   However in AmigaDOS scripts you cannot use ZShell-internal commands.
  1608. * To execute a ZShell script you have to set the @{" S-protection flag " Link Protect}
  1609.   and then you can execute it treating like a normal @{" command " Link Executing}
  1610.   or you have to use "EXECUTE ZSHELL scriptname".
  1611.   All ZShell commands, as well as commands from disk are valid within a
  1612.   ZShell script file.
  1613. * You can break scripts by pressing CTRL-D.
  1614. eg.   execute install_hard_disk
  1615.       execute zshell s:zstart
  1616. @ENDNODE
  1617. @NODE FailAt "FailAt"
  1618. FAILAT [failat_level]
  1619. * FAILAT sets the error code level at which scripts (and multiple
  1620.   commands on one line) will be aborted. The default level is 10.
  1621.   Most commands return 10 as an error, (20 for serious errors)
  1622.   while compilers returning Warning type errors will return 5.
  1623.   Hence, the default of 10 will allow Warnings to occur without
  1624.   the script (or line) being aborted. If a command returned an error
  1625.   code higher than the failat level, it will be printed out on the
  1626.   window.
  1627. eg.     failat 20       {sets failat level to 20}
  1628. * If you do not specify a failat level, the current setting is
  1629.   shown.
  1630. eg.     failat
  1631. @ENDNODE
  1632. @NODE Fault "Fault"
  1633. FAULT [error_number]
  1634. * FAULT displays a textual error message of the given DOS-error-number
  1635. eg.     fault 103
  1636.   (says something like "no free store", go and buy some extra memory :-)
  1637. @ENDNODE
  1638. @NODE Help1 "Help"
  1639. HELP [topic]
  1640. * HELP shows the lines of this manual corresponding to the topic.
  1641.   To see all topics available, type "HELP CONTENTS" . Make sure that
  1642.   the manual "ZShell.doc" is in the current directory or in S: !
  1643.   For some help about a command you can also type "commandname ?" .
  1644.   Type only "?" to read the manual with @{" MORE " Link MORE}.
  1645. Note: Instead of typing the topic you can type just some starting
  1646.       characters.
  1647. Note: The manual is only loaded once and will stay in memory till
  1648.       you use @{" AVAIL -C " Link Avail} or @{" ENDCLI -C " Link EndCLI}
  1649. eg.    help contents       {"help cont" will do the same}
  1650.        help copy
  1651.        makedir ?
  1652.        ?
  1653. * HELP without a topic lists the names of all available ZShell
  1654.   commands to the screen. This does not need the manual.
  1655.   HELP can also be invoked by hitting the HELP key.
  1656. eg.   help
  1657. @ENDNODE
  1658. @NODE If "If"
  1659. IF [NOT][WARN][ERROR][FAIL][EXISTS file]
  1660. * The IF command allows conditional execution of statements
  1661.   following it.
  1662. * If the condition specified is true, then execution continues
  1663.   after the IF statement until either an @{" ENDIF " Link ENDIF} or @{" ELSE " Link ELSE} statement
  1664.   is encountered. If it is an ELSE statement, then all statements
  1665.   between the ELSE and the closing ENDIF are skipped.
  1666. * If the condition is false, then all statements after the IF and
  1667.   before either an @{" ENDIF " Link ENDIF} or @{" ELSE " Link ELSE} statement are skipped. If an ELSE
  1668.   is encountered, then execution continues for all statements after
  1669.   the ELSE and before the closing ENDIF.
  1670. * IF can examine the state of the return code from the last command
  1671.   execute with WARN, ERROR, and FAIL tests. You can test for the
  1672.   non existence of such a state by including the optional NOT
  1673.   parameter.
  1674. eg.     IF WARN
  1675.            echo "last command returned warnings"
  1676.         ELSE
  1677.            echo "last command did not return warnings"
  1678.         ENDIF
  1679.         IF NOT FAIL
  1680.            echo "last command did not fail"
  1681.         ENDIF
  1682. * IF can also test for the existence of a file or directory.
  1683. eg.     IF EXISTS :system/format
  1684.            echo "this disk has a format command"
  1685.            echo "you can look yourself. I'm not joking"
  1686.         ENDIF
  1687.         IF NOT EXISTS ram:ed
  1688.            copy c:ed ram:
  1689.         ENDIF
  1690. @ENDNODE
  1691. @NODE Lab "Lab"
  1692. LAB label
  1693. * LAB specifies a destination (label) for the @{" SKIP " Link SKIP} command.
  1694. @ENDNODE
  1695. @NODE MemClk "MemClk"
  1696. MEMCLK ON|OFF|ALARM
  1697. * MEMCLK is for using a clock shown in the border of the actual
  1698.   window. The current total free and chip free memory are also
  1699.   shown. It can do a DisplayBeep (short flash on all screens) at a
  1700.   specified time. The DisplayBeep can be converted into a sound
  1701.   by using a PD-utility for that or using Workbench 2.1+ .
  1702. * Programmers: There will be only one "MemClock"-Task, even if you
  1703.   run MEMCLK on many windows  -> memory and CPU saving.
  1704. * MEMCLK ON switches the clock on or does nothing if it already
  1705.   exist.
  1706. * MEMCLK OFF switches the clock off or does nothing if it does not
  1707.   exist.
  1708. * MEMCLK ALARM shows the alarm time. If you type a time (see @{" DATE " Link DATE})
  1709.   after ALARM, you set the alarm time. (You cannot set an alarm date
  1710.   or multiple times.) ( MEMCLK A is the same as MEMCLK ALARM )
  1711. eg.     memclk on
  1712.         memclk off
  1713.         memclk alarm
  1714.         memclk a 21:34:07
  1715. @ENDNODE
  1716. @NODE NewCLI "NewCLI"
  1717. NEWCLI [-Wnew_window] [-Sstart_script] [-Ccommand] [-N] [-Hhelpfile] [-E]
  1718. * NEWCLI without arguments starts a new ZShell process.
  1719.   Things like paths, aliases and history buffer (!) will be copied to
  1720.   the new ZShell. The input/output window is created with the default
  1721.   specification. The startup script will be S:ZStart.
  1722. * "NEWCLI -Wnew_window" is used for opening a window with different
  1723.   specifications than the default. If you specify just "-W",
  1724.   there will be no window and output will be send to NIL: ; if there
  1725.   is input necessary, the ZShell process will just end (for
  1726.   example at a end of a script).
  1727. * "NEWCLI -Sstart_script" is used if the name of the startup script
  1728.   should be different from S:ZStart. If you specify just "-S", no
  1729.   script will executed.
  1730. * "NEWCLI -Ccommand" @{" executes " Link Executing} the command when starting. No script
  1731.   will be executed.
  1732. * See @{" Start from CLI " link CLIStart} for more information about the options.
  1733. eg.     newcli
  1734.         newcli -wcon:30/30/400/50/Shell
  1735.         newcli -wcon:50/20/500/100/Hello -ss:shell-startup
  1736.         newcli -sram:doassigns -w
  1737.         newcli "-wcon:30/30/400/50/Great Shell" "-cecho Welcome !"
  1738. @ENDNODE
  1739. @NODE Path "Path"
  1740. PATH [-C] [path1] [path2] [path3] ...
  1741. * PATH defines the command search path used by ZShell when searching
  1742.   for disk based commands (see @{" EXECUTING COMMANDS " Link EXECUTING}) .
  1743.   If you give the "-c" @{" option " Link option}, the old search path will be cleared
  1744.   and the new search path consist only of the given paths.
  1745. eg.     path -c c: ram:c df0: df1:
  1746.   This example will make it so that if you type a command which is
  1747.   not internal in ZShell, the @{" resident " Link resident} list will be searched for it,
  1748.   then the current directory, then the c: directory, then the ram:c
  1749.   directory, then df0:, and finally df1:
  1750. * By omitting the -c @{" option " Link option}, you can add a number of paths onto the
  1751.   existing command search path.
  1752. eg.     path df2:c
  1753.         path df1:bin df1:myprogs
  1754. * If, however, you type path with no parameters, the current search
  1755.   path will be displayed.
  1756. * When starting ZShell the paths of Workbench (if available) will be
  1757.   copied.
  1758. Note: It is a crazy thing that AmigaDOS shell always has C: as last path.
  1759.   In my startup-sequence you can find something like:
  1760.   "path ram: c: sys:utilities sys:system s: sys:prefs"
  1761.   In AmigaDOS shell the C: directory will then be searched twice if a
  1762.   command could not be found. Only having C: as last path slows down
  1763.   access, because most commands are in C:.
  1764.   That is why you have to specify C: explicite in ZShell where you want it.
  1765. @ENDNODE
  1766. @NODE Prompt "Prompt"
  1767. PROMPT [string]
  1768. * If no parameter is typed, the current prompt setting will be shown.
  1769. eg.     prompt
  1770. * If a prompt string is specified, the current prompt setting
  1771.   will be changed to that string. The character "%" specifies a
  1772.   special prompt option:
  1773.     %p      Insert whole path of current directory.
  1774.     %s      Insert last part of the path of current directory.
  1775.     %n      Insert CLI number
  1776.     %l      Insert current input line number (for fun!)
  1777.     %c      Insert last command (for even more fun ! :-)
  1778. * You can use control sequences like in the @{" ECHO " link Echo} command.
  1779. eg.     prompt "%p> "     {default prompt. Show current directory + ">"}
  1780.         prompt "%n.%s> "  {show CLI number, then current dir, then ">"}
  1781.         prompt Hello!     {shows "Hello!" at the start of every line}
  1782.         prompt %p^J^*32m> {Just try it!}
  1783. @ENDNODE
  1784. @NODE Quit "Quit"
  1785. QUIT [error_code]
  1786. * QUIT forces a script file to end, and return to the shell.
  1787.   An optional error code can be passed back (ie. 5=WARN 10=ERROR
  1788.   15=BAD 20=FAIL etc).
  1789. eg.     quit 5
  1790.         quit
  1791. @ENDNODE
  1792. @NODE Review "Review"
  1793. REVIEW [bytesize|-C|-Sfilename]
  1794. With the reviewbuffer you can see that again what scrolled out of the
  1795. window or was @{" redirected " Link redirect}. In the reviewbuffer are all outputs stored.
  1796. To see what is in the reviewbuffer just press SHIFT TAB. This activates
  1797. the @{" MORE " Link MORE} text reader.
  1798. * "REVIEW bytesize" (re)creates a reviewbuffer with the given size.
  1799. * "REVIEW 0" removes the reviewbuffer.
  1800. * "REVIEW" without arguments shows the adress and size of the current
  1801.   reviewbuffer.
  1802. * "REVIEW -C" clears the reviewbuffer.
  1803. * "REVIEW -S filename" saves the reviewbuffer to that file.
  1804. eg.     review 10000        {starts normal reviewbuffer}
  1805.         review 50000        {starts big reviewbuffer}
  1806.         review 0            {deletes reviewbuffer}
  1807. NOTE 1: Because it uses a circular buffer with fixed size, this is much
  1808.   faster than having a fixed number of lines. The decrease in scrolling
  1809.   speed is neglible.
  1810. NOTE 2: The Write function of the dos.library will be patched, so
  1811.   there might be problems with other programms that patch this too.
  1812. @ENDNODE
  1813. @NODE Run "Run"
  1814. RUN commandline
  1815. * RUN @{" executes " Link Executing} a commandline in a background task. If you want to
  1816.   execute several commands, you can separate them with \; .
  1817. * By default output goes to the current window. To surpress output or to
  1818.   get it into a file or onto a different window you can use @{" redirection " link Redirect}
  1819.   symbols like ">" (no output), ">filename" or ">w" (to a new window).
  1820.   In case of output redirection the launched background task will be
  1821.   totally independent from the task it is launched from.
  1822. * Input will be redirected to the same window output goes to. If you
  1823.   redirect output to a file, no input is possible (redirected to NIL:).
  1824.   Input redirection symbols does not make sense with the RUN command.  
  1825. * Because most things will be inherited to the new shell, you can use
  1826.   @{" Aliases " link Alias}.
  1827. eg.     run copy fred.doc prt:
  1828.         run >prt: type barney.doc
  1829.         run >w dir df0:\;ask
  1830. @ENDNODE
  1831. @NODE SetClock "SetClock"
  1832. SETCLOCK LOAD|SAVE
  1833. * SETCLOCK only works if you have a battery backed up clock (BBUC).
  1834.   It accesses the adresses $DC0000 and I do not know if it works
  1835.   with very old or very new (A1200) clocks.
  1836. * SETCLOCK LOAD sets the systemtime (you can see the systemtime with
  1837.   @{" DATE " Link DATE} or @{" MEMCLK " Link MEMCLK}) to the time in the BBUC (hopefully this is the
  1838.   right time).
  1839. * SETCLOCK SAVE first resets the BBUC, then stores the systemtime
  1840.   to the BBUC.
  1841.   To set the BBUC to the right time, use @{" DATE " Link DATE} to set the correct
  1842.   date and time, then use SETCLOCK SAVE.
  1843. eg.     setclock load
  1844.         setclock save
  1845. @ENDNODE
  1846. @NODE Skip "Skip"
  1847. SKIP label
  1848. * SKIP searches for the label within the current script file. If it
  1849.   finds it, execution continues from that point onwards. Labels
  1850.   are specified using the @{" LAB " Link LAB} command.
  1851. eg.     lab myloop
  1852.         dir ram:
  1853.         ask "list ram again? "
  1854.         if warn
  1855.            skip myloop
  1856.         endif
  1857. @ENDNODE
  1858. @NODE Stack "Stack"
  1859. STACK [size]
  1860. * Allows you to view or alter the current stack size.
  1861. eg.     stack            {shows the current stack size}
  1862.         stack 30000      {sets current stack = 30000 bytes}
  1863. @ENDNODE
  1864. @NODE UnAlias "UnAlias"
  1865. UNALIAS [alias1] [alias2] [alias3] [alias4] ...
  1866. * UNALIAS removes one or more @{" alias " Link alias} definitions from the alias list.
  1867. * UNALIAS without arguments removes all aliases.
  1868. eg.     alias f1 "cd df0:;dir^M"
  1869.         alias f2 "cd df1:;dir^M"
  1870.         ...
  1871.         alias f10 "ed df1:s/startup-sequence^M"
  1872.         unalias f1 f2 f3 f4 f5 f6 f7 f8 f9
  1873.         ...
  1874.         unalias f10
  1875. @ENDNODE
  1876. @NODE Wait "Wait"
  1877. WAIT timeout
  1878. * WAIT halts processing for the time given. Timeout is in seconds.
  1879.   You can abort this with CTRL-C.
  1880. eg.     echo "I'll wait a minute"
  1881.         wait 60
  1882. @ENDNODE
  1883. @NODE Comments "Comments"
  1884. ; blah blah blah blah
  1885. * etc etc etc
  1886. # hello ma
  1887. * Placing a semi-colon, an asterisk or a hash character as the 1st
  1888.   character in the line of a script file allows you to place comments
  1889.   in it.
  1890. eg.   ; This is a comment line
  1891. * If you want to place a comment at the end of a line, you have to
  1892.   put ;# before it.
  1893. eg.   info;#to see something interesting
  1894. @ENDNODE
  1895. @NODE BUILTIN3 "Builtin Commands for Advanced Users"
  1896. These commands are thought for users with a deeper knowledge of the
  1897. system. Maybe they are also useful for those not knowing of the system
  1898. internals. Just try the examples to find that out.
  1899. @{" Break " Link Break} task_description [signalmask|C|D|E|F]
  1900. @{" Config " Link Ctrl} CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE|LOGFILE
  1901. @{" DiskChange " Link DiskChange} device
  1902. @{" Flags " Link Flags} [CHECK|MATCH|ICON|WILD|ERRORS|DEBUG|CUT|ALL|HIDE|PIPE] [ON|OFF]
  1903. @{" GetMsg " Link GetMsg} [portname]
  1904. @{" Kill " Link Kill} device|taskdescription
  1905. @{" Locate " Link Locate} [-C] [bptr|name] [READ|WRITE]
  1906. @{" M " Link M} [start_address] [end_address]
  1907. @{" PutMsg " Link PutMsg} port_description [number1|string1] [number2|string2] ...
  1908. @{" Show " Link Show} D|I|L|M|P|R|S|T|V
  1909. @{" Strings " Link Strings} sourcefile [count]
  1910. @{" TaskPri " Link TaskPri} priority [task_description]
  1911. @ENDNODE
  1912. @NODE Break "Break"
  1913. BREAK task_description [signalmask|C|D|E|F]
  1914. * BREAK sets some signals at a given task
  1915. * task_description can be one of:
  1916.   - task/process name (case dependent !)
  1917.   - task/process adress
  1918.   - CLI-process number (one from 1 to 20)
  1919.   - zero (0) for this task
  1920.   It will be checked if the node-type field contains TASK or PROCESS
  1921. * signalmask is a longword; all bits, which should be signalled,
  1922.   must be 1 . Alternatively you can specify c,d,e or f to set
  1923.   the according signal to CTRL-C,-D,-E or -F. (CTRL-C is bit 12)
  1924. * BREAK without signalmask (and c,d,e,f) given sets all signals the
  1925.   task is waiting for.
  1926. eg.     break RexxMaster    {and it will be gone...}
  1927.         break Exchange c    {Exchange will get itself off too}
  1928. eg. If 2 ZShells are running. The one with the CLI-number 1 (get that
  1929.     out with prompt %n) lists a very large directory. You can break
  1930.     that by using the other ZShell typing:
  1931.         break 1 c
  1932.     Thats the same like you pressed CTRL-C on the ZShell number 1.
  1933. @ENDNODE
  1934. @NODE Ctrl "Config"
  1935. CONFIG CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE|LOGFILE
  1936. This command is for changing the default settings.
  1937. * CONFIG CTRLKEYS is for command-line-editing-keys-definitions
  1938.   (great word :).  In other words: You can change the meaning of keys
  1939.   pressed with CTRL (Control) key and some other keys (TAB ^I,
  1940.   Backspace ^H, Return ^M, Shift-Return ^J, ESC ^[).
  1941.   "CONFIG CTRLKEYS" shows the current settings,
  1942.   "CONFIG CTRLKEYS WQSEIX[TYHJMLRVFP" sets the default settings.
  1943.   To change something, just change the character corresponding to
  1944.   the key pressed with CTRL. See some lines above for some CTRL-
  1945.   equivalents.
  1946.   eg. TAB is same as CTRL-I . So to use CTRL-K instead of TAB, you use:
  1947.         config ctrlkeys WQSEKX[TYHJMLRVFP
  1948.   Warning: You may get confused if you define one key twice.
  1949.   If you want to get really confused, try:
  1950.         config ctrlkeys WQSEKX[TIYMJHRVFP
  1951. * "CONFIG MOREKEYS" shows the keys that can be pressed inside @{" MORE " link More}.
  1952.   The uppercase keys represent the cursor keys, default is: ABCDSTqsnjwrh
  1953.   It works similar to CONFIG CTRLKEYS. To use RETURN key to exit MORE use:
  1954.         config morekeys ABCDST^Msnjwrh     (see also @{" ECHO " link Echo})
  1955. * "CONFIG DOT character" replaces the dot character (.) where it has a
  1956.   special meaning (@{" ECHO " Link ECHO},@{" SEARCH " Link SEARCH},@{" PUTMSG " Link PUTMSG}, dir back, force disk, abbreviation)
  1957.   eg.   config dot *
  1958. * "CONFIG HIDE pattern" sets the files that are hidden by @{" DIR " link dir}
  1959.   and @{" filename completion " link filenamecompletion}. The pattern must contain at least
  1960.   one @{" wild card " link wild_card}.
  1961.   "CONFIG HIDE" shows the current settings (by default none).
  1962.   eg.   config hide         {display current hiding pattern}
  1963.         config hide ""      {unset the hiding pattern}
  1964.         config hide *.info  {ignore *.info-files}
  1965.         config hide *.info|*.bak {hide files ending in .info and .bak}
  1966.         config hide ~*.tex|*.dvi {show only *.tex and *.dvi-files}
  1967. * "CONFIG COLOUR colours" defines the use of colours. "colours" has to be
  1968.   a 8 digit number. The digit at position x defines to what colour number
  1969.   the default colour x is mapped to. Everything clear ? (I think no!)
  1970.   Thsi is global. Do not forget to make a CLS afterwards.
  1971.   eg.   config colour 01234567   {sets the default colours}
  1972.         config colour 01111111   {switches to one colour mode, very useful
  1973.                                   with OS3.0+ to speed up scrolling}
  1974.         config colour 01233321   {if you want to use only 4 colours}
  1975. * "CONFIG COPYSIZE bytesize" sets the size of the memory block used for
  1976.   COPY, MOVE and SPLIT to "bytesize" bytes. The default setting 50000
  1977.   semms to be a good value for both harddisk and floppydisk. If you
  1978.   only use floppydisk try:
  1979.         config copysize 20000
  1980.   and to display the current setting use:
  1981.         config copysize
  1982. * "CONFIG FNCSIZE bytesize" sets the size of the memory block used to
  1983.   store the last used directory at @{" filename completing " link filenamecompletion} (=FNC).
  1984.   If this memory block (=FNC buffer) is too small, FNC has to read the
  1985.   directory again every time you press TAB and TAB cycling does not work.
  1986.   To save memory you can try:
  1987.         config fncsize 2000      for 2000 bytes FNC buffer or
  1988.         config fncsize 0         for no FNC buffer at all
  1989.   and to display the current setting use:
  1990.         config fncsize
  1991. * "CONFIG LOGFILE filename" opens a global logfile which is used by all
  1992.   ZShells running. You will be asked for your name.
  1993.   Every command line will go there including date, time and CLI process
  1994.   number. The logfile will be closed if all ZShells end.
  1995.   "CONFIG LOGFILE" closes the logfile manually.
  1996. @ENDNODE
  1997. @NODE DiskChange "DiskChange"
  1998. DISKCHANGE device
  1999. * Needed for devices which do not detect a diskchange.
  2000. eg.     mount rad:;diskchange rad:
  2001.   Makes your rad:-disk appear on the Workbench.
  2002.         diskchange ram:
  2003.   If the ram-disk does not exist yet, the handler will be started
  2004.   (and the ram-disk can appear on Workbench when done before LOADWB)
  2005. @ENDNODE
  2006. @NODE Flags "Flags"
  2007. FLAGS [CHECK|MATCH|ICON|WILD|ERRORS|DEBUG|CUT|ALL|HIDE|PIPE] [ON|OFF] ...
  2008. * With this you can configure some things. Use FLAGS without arguments
  2009.   to see the current settings. The meaning of the keywords are:
  2010. CHECK: (default off) Activates or deactivates the programmers status line.
  2011.   It is intended to debug external commands.
  2012.   The status line (if activated) will only appear once a disk based
  2013.   or resident program has been executed. The line appears as follows:
  2014.   Result2: 0  time = 00:00:23.66  changes-> chip: 0  fast: 0  total: 0
  2015.   Result2 shows the error code that can be asked for with IoErr.
  2016.   Time shows how long the program took to execute in hours,
  2017.   minutes, seconds, hundredths (This time does NOT include the time
  2018.   it takes to load the program from disk). Changes show if the program
  2019.   has left any memory still allocated. i.e. if 200 bytes of chip
  2020.   memory were left allocated by the program, then you see "chip: -200".
  2021.   The Return code (the program returns in D0) is shown as Fail-Level.
  2022.   It also does some low memory checks on 68000 CPU systems. Be warned if
  2023.   a "Changed ..." appears. Like Mungwall it sets address 0 to $C0DEDBAD.
  2024. MATCH: (default on) By default @{" Filenamecompletion " link Filenamecompletion} shows all files that matches
  2025.   the given pattern. You can switch this off by using "FLAGS MATCH OFF".
  2026. ICON: (default off, OS2.0+) This enables iconifying when pressing ESCAPE
  2027.   or clicking the Close-Gadget. To exit from ZShell use @{" ENDCLI " link Endcli}.
  2028.   You need Workbench running and ZShell must have opened its own window
  2029.   (start from Workbench, start with newcli or used -W when started from
  2030.   CLI).  When iconifying, a icon is created on the Workbench and the
  2031.   window is closed. Double-clicking on this icon or dragging a file into
  2032.   it pops ZShell up again. Use the ToolTypes "ICONNAME", "XPOS" and
  2033.   "YPOS" to determine the name and position of the icon.
  2034.   ToolType "ICONIFY" lets ZShell start in iconifyed mode.
  2035. WILD: (default on, OS2.0+) By enabling this, you force ZShell to use
  2036.   AmigaDOS @{" wildcard-patternmatching " link wild_card} instead of the internal matcher.
  2037.   Switch this off if you like the internal matcher better.
  2038. ERRORS: (default off) Most external commands show their errormessages
  2039.   themselves, so you often see double error messages. Using ERRORS you can
  2040.   switch off this behaviour, but you risk to miss some errormessages !
  2041.   If you see a large errornumber, this command assumed that there will be
  2042.   no error-output and does not set the correct errorcode --- this is
  2043.   badly programmed !
  2044. DEBUG: (default off) This is for testing/debugging script-files. Switching
  2045.   DEBUG to ON, the commands from the script appear on the window as they
  2046.   are processed (you need to execute the script for that, ofcourse),
  2047.   and redirection will be ignored (so you will see even output to >NIL: ).
  2048. CUT: (default on) For @{" MORE " link More}. If ON, lines longer than the window will be
  2049.   cutted at the end. If OFF, too long lines will wrapped to next line.
  2050. ALL: (default on) Enables the substitute ALL for the @{" option -R " link option}.
  2051.   Note that -R must be the first argument (or second after -Q) and ALL
  2052.   must be the last argument.
  2053.   (Only in this release you can place ALL anywhere you like)
  2054. HIDE: (default on) When on the cursor will be hidden for outputting. This 
  2055.   improves scrolling speed. Switching off is only thought for debugging.
  2056. PIPE: (default on) If ON, real pipes will be used, pseudo pipes otherwise.
  2057.   See @{" Anonymous Pipes " link Pipes} for more.
  2058. eg.     flags icon on all off
  2059.         flags errors off all off check on
  2060.         flags e. off a. off ch. on          {same as above}
  2061. @ENDNODE
  2062. @NODE GetMsg "GetMsg"
  2063. GETMSG [portname]
  2064. * GETMSG waits for a message arriving at the process-internal
  2065.   messageport (pr_MsgPort). The message will be shown, strings
  2066.   will be tried to detected (this could cause lots of enforcer hits).
  2067.   Then you will be asked if to reply the message. "y" replies it
  2068.   and should be used normally. "e" replies and gets back to waiting
  2069.   mode again. Abort waiting is possible with CTRL-C.
  2070. * "GETMSG portname" gives the process-internal port the given name.
  2071.   Then it behaves as described above.
  2072. * See @{" PUTMSG " Link PUTMSG} for examples.
  2073. @ENDNODE
  2074. @NODE Kill "Kill"
  2075. KILL device|taskdescription
  2076. * KILL lets the handler of a device (name ending in ":") end itself.
  2077.   It seems not to work with most handlers. Works with CrossDOS
  2078. * It can remove tasks too, but this will likely crash, because it is
  2079.   NOT SYSTEMCONFORM ! See @{" BREAK " Link Break} for taskdescription.
  2080. eg.     kill PC0:
  2081.         kill Exchange
  2082. @ENDNODE
  2083. @NODE Locate "Locate"
  2084. LOCATE  [-C] [bptr|name] [READ|WRITE]
  2085. * "LOCATE lockadress" (lockadress is a BPTR) shows information about
  2086.   that lock structure. fl_Access must be -1 (write) or -2 (read).
  2087. * "LOCATE filename_or_dirname READ" gets an ACCESS_READ lock structure on
  2088.   that file/dir.
  2089. * "LOCATE filename_or_dirname WRITE" gets an ACCESS_WRITE lock structure
  2090.   (exclusive lock) on that file/dir. This cannot be shown correctly,
  2091.   otherwise it would not be exclusive.
  2092. * "LOCATE -C lockadress" unlocks (removes) the lock structure (BPTR !).
  2093. * "LOCATE" shows all locks that are in system. Since OS2.0 this cannot
  2094.   show correctly all locks on RAM: because it is some kind of hack.
  2095. eg.     locate &21f45c        {shows lock on adress $21f45c}
  2096.         locate $9f5b7         {shows lock with BPTR $9f5b7}
  2097.         locate -c $9f5b7      {removes this lock}
  2098.         locate ram:rdit read  {tries to read-lock ram:rdit}
  2099.         locate c:mount write  {tries to write-lock c:mount}
  2100.         locate                (shows all locks in system}
  2101. @ENDNODE
  2102. @NODE M "M"
  2103. M [start_address] [end_address]
  2104. * M is a memory contents dumping command.
  2105. * Typing M with a start and end address will display the hex and
  2106.   ASCII contents of those bytes in the memory locations specified.
  2107. * Typing M with only a start address will display 160 bytes
  2108.   starting at the location specified.
  2109. * Typing M with no parameters will display 160 bytes starting
  2110.   from the current memory location.
  2111. * The current memory location is always one location higher than
  2112.   the last location shown by a prior M command.
  2113. eg.   m $70000 $77fff
  2114.       m $fc0000
  2115.       m
  2116. @ENDNODE
  2117. @NODE PutMsg "PutMsg"
  2118. PUTMSG port_description [number1|string1] [number2|string2] ...
  2119. * PUTMSG is useful for testing programms which wait for a message,
  2120.   or to reactivate a task that waits for a message which will never
  2121.   arrive. PUTMSG sends a message to the given messageport.
  2122. * port_description can be given in 5 (!) ways:
  2123.   - Name of the messageport
  2124.   - Adress of the messageport
  2125.   - 3 ways of a task_description, see @{" BREAK " Link BREAK}. This MUST be a Process
  2126.     because the process-internal messageport will be used.
  2127. * number|string is a longword number or a string. If it is a number,
  2128.   it will just be added to the message. If it is a string, a
  2129.   adress pointing to this string will be added to the message.
  2130.   If number1|string1 was a point (.), the message will be initialized
  2131.   as an DOS-Packet.
  2132. * After sending the message PUTMSG will wait for the reply and show
  2133.   that reply like @{" GETMSG " Link GETMSG}. Abort waiting with CTRL-C.
  2134. WARNING: Your machine might CRASH if you send a message to a
  2135.   (Process-internal) port that is not waiting for this message.
  2136. NOTE: PUTMSG without arguments makes a DisplayBeep (even without a
  2137.   window) and outputs the internal register value of A5.
  2138. eg.     putmsg testtask $21fd68 12
  2139.         putmsg testport "Hello World!"
  2140.   If you have 2 ZShells, execute in the one with CLI-number 1
  2141.   "getmsg". Activate the other shell and type
  2142.         putmsg 1 "like some chatting ?"
  2143.   The ZShell no. 1 should display that and prompt "reply ?". Answer
  2144.   "y" and the message goes back again.
  2145.   Now try "getmsg wurgutz" at one ZShell and "putmsg wurgutz $abcd"
  2146.   on the other. Do not forget to reply.
  2147. * You can use PUTMSG to use the AREXX interface of a programm. This
  2148.   works with some programms even with OS1.3- and no AREXX-Package.
  2149. eg.     putmsg showdvi 0 0 0 0 0 "tofront" {gets ShowDVI to front}
  2150.   Instead of the first 0 you sometimes must write the adress of
  2151.   this task. If available replace the second 0 with a pointer to
  2152.   the rexxsyslib.library. The third 0 is called rm_Action. I do not
  2153.   know what it is for. The fourth and fifth are results, only
  2154.   interesting in the reply.
  2155. eg.     putmsg showdvi 0 0 0 0 0 "loadnew tex.dvi"
  2156. * Specify a point as first number if you want to send a DOS-Packet.
  2157. eg.     putmsg DF0 . 0 1023 0 0 -1     {same as LOCK DF0: ON}
  2158.   If you get $FFFFFFFF as 4th longword, it was successful.
  2159.  (with OS1.3- you need to use FileSystem instead of DF0)
  2160. @ENDNODE
  2161. @NODE Show "Show"
  2162. SHOW D|I|L|M|P|R|S|T|V
  2163. * Shows some information about important exec-lists:
  2164.   - Devices
  2165.   - Interrupts
  2166.   - Libraries
  2167.   - Memory
  2168.   - Ports (MessagePorts)
  2169.   - Resources
  2170.   - Semaphores
  2171.   - Tasks (and Processes)
  2172.   - Vectors for reset-resident programs
  2173.   Use the first character of one of them as argument.
  2174. * The output means:
  2175.   - Adress: hexadecimal start adress of the structure
  2176.   - Pri   : Priority, often unused
  2177.   - Ver   : Number of version  (only with D,L,R)
  2178.   - Rev   : Number of revision (only with D,L,R)
  2179.   - Name  : Name
  2180.   - State : Task state (only with T)
  2181.   - SignWait : Signals, a waiting task waits for (only with T)
  2182.   - PT    : Pr means Process, Ta means Task, Tm means Task with
  2183.             Messageport like Process     (only with T)
  2184. * If displaying the tasklist, the CLI-number (-> CLI ?:) and the
  2185.   loaded command will be shown at processes with cli-structure.
  2186.   ">" stands for output-redirected, "<" for input-redirected.
  2187.   "Bg-CLI" means background CLI.
  2188. * SHOW V displays some important execbase pointers, which give a
  2189.   good indication of whether a virus is present in your system.
  2190.   WarmCapture, CoolCapture, ColdCapture, KickTagPtr, KickMemPtr,
  2191.   and KickCheckSum are displayed. If any of these are are NOT
  2192.   zero, then either a virus, RAD, or virus protector or some
  2193.   other program that takes control of your machine when you
  2194.   reset, is present.
  2195. eg.     show d          {have a look at the device-list}
  2196.         show Devices    {same as above}
  2197.         show t          {This is REAL MULTITASKING ! :) }
  2198. @ENDNODE
  2199. @NODE Strings "Strings"
  2200. STRINGS sourcefile [count]
  2201. * STRINGS displays all valid ASCII strings in a file which have a
  2202.   length greater than or equal to the count. If no count is given,
  2203.   a default of 10 characters is used.
  2204. * This command is very useful for finding out which libraries a
  2205.   program uses.
  2206. eg.     strings c:zshell 20
  2207.         strings c:mount
  2208. @ENDNODE
  2209. @NODE TaskPri "TaskPri"
  2210. TASKPRI priority [task_description]
  2211. * TASKPRI sets the priority of a task, it can be displayed using
  2212.   "SHOW T". The priority must be between -127 and 128 and should
  2213.   be within -50 and 20 to avoid system-hangups. Standard is 0 .
  2214. * task_description is same as described at @{" BREAK " Link BREAK}.
  2215. * With one argument TASKPRI sets the priority of this task.
  2216. * If task_description is given, TASKPRI sets the priority of the
  2217.   given task.
  2218. NOTE: I did not like to call this command CHANGETASKPRI, because
  2219.       this name is really too long.
  2220. eg.     taskpri 2       {This task will be preferred}
  2221.         taskpri -1 3    {affects CLI no. 3}
  2222.         taskpri 4 Workbench
  2223. @ENDNODE
  2224. @NODE Changes "Changes"
  2225. UP TO V1.3:See the source code of the ZShell V1.3 release
  2226.            (for example on FISH disk 537).
  2227.            @{" Author: Paul Hayter " Link Authors}
  2228.            Source: 103 KByte, Executable: 13 KByte, Doc: 32 KByte.
  2229. V2.0:There were so many changes, I think there is no sense in listing
  2230.      them all here, because it may be longer than this document. So just
  2231.      read this document or the source code.
  2232.      All changes since V1.3 made by @{" Martin Gierich " Link Authors 9}. Released 14.10.94.
  2233.      Source: 180 KByte, Executable: 25 KByte, Doc: 72 KByte.
  2234. V2.1  11.12.94:
  2235.     * IMPORTANT FOR THOSE WHO USED ZSHELL V2.0: Do not start ZShell V2.1 *
  2236.     * if ZShell V2.0 is resident. This will crash your machine !         *
  2237.     * Do not use ZSH V2.0 with ZShell V2.1 and vice versa.               *
  2238.   - Added a @{" review " Link review} buffer to see that again what scrolled out of the
  2239.     window. A scrollbar will probably added in future.
  2240.   - Changed default @{" CTRL " Link CTRL}-keys; added 2 new CTRL-keys (see @{" HISTORY " Link HISTORY}).
  2241.   - Changed usage of @{" MORE " Link MORE} (you can still use the cursor keys).
  2242.   - @{" DIR " Link DIR} now hides all these files that @{" Filenamecompletion " Link Filenamecompletion} ignores.
  2243.   - Some bugs found with mungwall and scratch are fixed.
  2244. V2.2  03.01.95:
  2245.   - Fixed a REALLY NASTY BUG that trashed taskswitching when closing ZShell.
  2246.   - @{" AmigaGuide-Documentation " Link Distribution} added !
  2247.   - @{" RUN-Command " link Run} added !
  2248.   - @{" NEWCLI " link NewCLI} has a new argument template.
  2249.   - @{" CTRL-J = Shift-RETURN " Link History} puts the command line in History
  2250.     buffer without executing.
  2251.   - @{" PROMPT " Link Prompt} now knows the args %s and %c :-) . Default Prompt
  2252.     changed to "%s> ".
  2253.   - Better building of the CLI-Interface when @{" starting " Link Starting} from WB.
  2254.   - Now the @{" Pseudo-Assign " link Assign} PROGDIR: is provided (OS2.0+ only).
  2255.   - @{" LIST -Q -R " Link List} also works; @{" DIR " Link Dir} can also list recursive.
  2256.   - @{" ECHO Hi There ! " Link Echo} will now do the same as ECHO "Hi There !" .
  2257.   - Improved options when @{" starting " link Starting} from CLI.
  2258. V2.3  10.02.95:
  2259.     This time there are some real new features. Because now I have my
  2260.     OS3.1 Autodocs and Includes, I have added several features that can
  2261.     only be used with OS2.0+. There will be done version-checkings before
  2262.     using OS2.0+ specific stuff, so no need to be afraid of crashes.
  2263.   - New Commands: @{" MAKEICON " link MakeIcon}, @{" MAKELINK " link MakeLink}, @{" FLAGS " link Flags} and @{" MOVE " link Move}.
  2264.   - @{" DELETE " link Delete}, @{" COPY " link Copy}, @{" MOVE " link Move}, @{" PROTECT " link Protect} and @{" JOIN " link Join} are fully rewritten !
  2265.     They now all use the directory-lister (for LIST and DIR)
  2266.     and therefore all support wildcards and recursive processing !
  2267.   - @{" PATH " link Path}-Command is now AmigaDOS compatible.
  2268.     Paths from Workbench are duplicated on starting from Workbench.
  2269.   - Support of Hardlinks and Softlinks by @{" MAKELINK " Link MakeLink}, @{" LIST " Link List} and @{" DIR " Link Dir}.
  2270.   - @{" ASSIGN " link Assign} supports ADD, REMOVE, PATH and DEFER.
  2271.   - @{" Redirection " link Redirection} improved: Can also be redirected to @{" MORE " link More}.
  2272.   - Can be iconified to an ApplicationIcon (see @{" FLAGS " link Flags}).
  2273.   - Erroroutput is done by DOS.
  2274.   - @{" DELETE DEVICE " Link Delete} formats a disk quick,
  2275.   - @{" DELETE FORCE " Link Delete} ignores delete-protection-bits.
  2276.   - @{" Filenamecompletion " Link Filenamecompletion} can show all matching files.
  2277.   - @{" MORE " Link More} supports "more keys" and checks windowsize.
  2278.   - @{" ALIAS " link Alias} can work without surrounding quotes; now you
  2279.     have to remove \ before " ,sorry for any incompatibilities.
  2280.   - CHECK is moved to @{" FLAGS " link Flags}, VEC is moved to @{" SHOW V " link Show}.
  2281.   - RESET removed: It was a hack ! RECOPY removed: Has anybody needed it ?
  2282.   - First line in @{" Command History " link History} is the last changed line.
  2283.   - You can use ^* instead of ^$9b with @{" ECHO " Link Echo} and @{" PROMPT " Link Prompt}.
  2284.   - Really faaaast searching in @{" MORE " Link More}, @{" SEARCH " Link Search} and @{" HELP " Link Help1}.
  2285.   - Bugfix and new options when @{" starting " link Starting} from CLI.
  2286.   - New Tooltypes for @{" starting " link Starting} from Workbench.
  2287.   - @{" HELP " link Help} only searches the current dir and S: for the manual.
  2288.   Now there is not much of the original V1.3 release left, because most
  2289.   of the old parts are totally rewritten and size has more than doubled !
  2290. V2.4  28.02.95:
  2291.     Important bugfixes made !
  2292.   - Application-Window allows dropping Workbench-Icons into ZShell-Window; OS2.0+
  2293.   - @{" Check-Flag " Link Flags} checks writes to low memory
  2294.   - @{" SHOW task " Link Show} shows redirection/background
  2295.   - @{" DIE task " Link Die} removes task
  2296.   - @{" COPY " Link Copy} uses dots as progress indicator
  2297.   - If an error during starting occurs, there will be an @{" errormessage " Link ErrorStart}
  2298.   - Sets Wildstar-Flag in System, so you can use "*" instead of "#?"
  2299.     with all commands; OS2.0+
  2300.   - @{" Hide-Flag " Link Flags} added.
  2301.   - Lots of bugfixes
  2302. V2.5  11.04.95:
  2303.   - Localized most messages using the catalog of AmigaDOS, so no
  2304.     translating required (and I do not have to look for translators :-) ; OS2.1+
  2305.   - Pressing @{" CTRL-F " Link History} a filerequester pops up; OS2.0+
  2306.   - Possible to open own Public Screen on @{" starting " Link Starting}; OS2.0+
  2307.   - @{" EXECUTE " Link Execute} uses AmigaDOS Shell for executing scripts
  2308.     and therefore no longer causes compatibility problems. To execute
  2309.     ZShell-scripts: set S-protection flag and use it like a @{" command " Link Executing}.
  2310.   - Correct inserting of strings when pressing function-keys or dropping
  2311.     an Icon on Window/AppIcon
  2312.   - Removed C: as default @{" path " Link Path}. This was a stupid idea
  2313.     I got from the AmigaDOS Shell. It is better to have C: as first path.
  2314.   - You can use textfiles/Amigaguides with E-flag set like a @{" command " Link Executing}.
  2315.     It will then be displayed using @{" amigaguide.library " Link Guide.lib}. With OS3.0+
  2316.     this even works on everything supported by your datatypes (like pics)
  2317.   - Problems with foreign characters hopefully fixed
  2318.   - NEWCLI and RUN now copy stacksize, appiconname and windowname
  2319.   - Bugfixes: ASSIGN, DIR/LIST, DELETE DEVICE
  2320.   - ToolType ICONIFY fixed. It has NEVER worked !
  2321.   - @{" Starting ZShell " Link Starting} chapter improved
  2322.   Source: 217 KByte, Executable: 31 KByte, Guide: 104 KByte.
  2323. V2.6  02.06.95 (was not on Aminet):
  2324.   - Commands changed:
  2325.     @{" HTYPE " link HType} filename [offset]
  2326.     @{" LOCATE " link Locate} [-C] [bptr|name] [READ|WRITE]
  2327.     @{" CONFIG " link ctrl} CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE
  2328.   - New Command: @{" SPLIT " link Split} source dest length [offset]
  2329.   - @{" Filename completion " link filenamecompletion} now reads directory to
  2330.     memory to decrease access time. It is now fine to use on floppy disks,
  2331.     too. By pressing TAB multiple times you can cycle through the matches.
  2332.   - No more problems to delete the last used directory, because "dir back"
  2333.     (a single point as command) uses a string instead of a lock.
  2334.   - Showing files using Amigaguide does not check for the E-protection-
  2335.     flag anymore
  2336.   - Use ESC or Q key to quit @{" MORE " link More}
  2337.   - String comparison in Filename completion and DIR/LIST is now localized
  2338.   - OS2.0+: AmigaOS wildcards are used (they are localized). They are a
  2339.     bit different. To get back the internal ones use: FLAGS WILD OFF
  2340.   - Default prompt is now "%p> " again (something has to be changed :-)
  2341.   - New Tooltype: HELPMAN , new CLI option: -h
  2342.   - @{" Options " link Option} can be overridden by surrounding them with quotes
  2343.   - Bug fixes: DEL key, FLAG CHECK -> locks, scripts ending in LF
  2344. V2.7 14.08.95:
  2345.   - Support of @{" anonymous pipes " link Pipes}. You can choose between
  2346.     real and pseudo pipes using @{" FLAGS PIPE " link Flags}.
  2347.     Multiple pipes and aliases are also supported.
  2348.     All internal commands can be left to "|".
  2349.   - Internal commands that can take data from standard input (stdin)
  2350.     (can be right to "|" only when using pseudo pipes):
  2351.     MORE, TYPE, HTYPE, STRINGS, SEARCH, EXECUTE ZSHELL
  2352.   - @{" EXECUTE ZSHELL scriptname " link Execute} executes a ZShell script
  2353.   - @{" RUN command " link Run} outputs to current window,
  2354.     @{" RUN >filename command " link Run} outputs to filename
  2355.   - @{" Redirection >W " link Redirect} opens a window
  2356.   - @{" MORE " link More}: Key N searches next occurence of searchstring
  2357.   - @{" PROTECT " link Protect}: You can use = similar to + or -, reduced disk access
  2358.   - @{" FLAGS CHECK ON " link Flags} does not count locks anymore, use @{" LOCATE " link Locate} instead
  2359.   - @{" MAKELINK " link Makelink}: HARD is default, SOFT must be specified explicitely
  2360.   - @{" DELETE dirname ALL " link Delete} deletes contents of the directory, then tries to
  2361.     remove the directory
  2362.   - @{" CTRL-P " link History} flushes FNC-buffer (useful on CrossDOS disks)
  2363.   - Default @{" prompt " link Prompt} is now "%s> " again
  2364.   - @{" EVAL " link Eval} uses now different symbols
  2365.   - Bugfixes (Thanks to Christian and Timothy who reported most of them)
  2366. V2.8 25.08.95:
  2367.   - @{" Filename completion " link filenamecompletion} accepts wildcards
  2368.   - Support of logfiles, see @{" CONFIG LOGFILE " link CTRL}
  2369.   - No space before @{" pipe symbol | " link pipes} needed, use \| to get |
  2370.   - Better handling of \ and of rediretion names
  2371.   - New chapter: @{" Command Line Parser " link Parser}
  2372.   - @{" CTRL-F " link History} behaves similar to @{" Filename completion " link filenamecompletion}
  2373.   - @{" MEMCLK " link Memclk} uses correct font
  2374.   - Probably added some brand new nasty bugs and left some ugly old bugs :)
  2375.   - And what is best: Improved versionnumber ! @{" ;-) " Quit}
  2376.  All changes since V1.3 made by @{" Martin Gierich " Link Authors 9}.
  2377. @ENDNODE
  2378. @NODE Problems "Known Problems"
  2379. Here are listed known bugs and odd behaviours.
  2380. * CrossDOS
  2381.   With MessyDOS being one big bug, the MessyDOS filesystem is part of
  2382.   a bug. :-) This means not all things AmigaDOS supports, is supported
  2383.   by CrossDOS, too. Especially @{" Protection bits " link Protect} are different,
  2384.   and @{" Filenotes " link Filenote} are not supported. Not to mention the 8+3 filename limit.
  2385.   A further problem is the missing @{" date-of-last-change " link Setdate} of the disk.
  2386.   Without this @{" FNC " Link Filenamecompletion} cannot determine whether something on the disk has
  2387.   been changed and even not whether the whole disk has been changed.
  2388.   So you have to update FNC manually by pressing @{" CTRL-P " link History} after a change.
  2389. * @{" MORE " link More}
  2390.   If you are on the last page, scroll up some lines and scroll down some
  2391.   lines again, you will notice a weird behaviour. This is hard to fix.
  2392. * @{" ALIAS " link Alias}
  2393.   alias list dir ; alias dir list
  2394.   does not exchange "dir" and "list", because nested aliases are allowed.
  2395.   This is not a bug, this is a feature !
  2396. * @{" Review-Buffer " link Review}
  2397.   Some commands, especially OS2.0+ only, use other ways to output text
  2398.   than dos.library's Write(). As a result this output will not appear
  2399.   in the review-buffer. Probably this will be fixed in future.
  2400. * @{" DELETE " link Delete}
  2401.   If you want to delete a link, you have to describe it with wild cards,
  2402.   otherwise the original file will be deleted, because the system
  2403.   resolves links automatically. I do not have an idea how to work
  2404.   around it.
  2405. * @{" MOVE " link Move}
  2406.   You have to make sure that the destination directory is not moved to
  2407.   itself like in "move * temp/". Maybe there are more strange behaviours
  2408.   in the MORE command, @{" I " link Authors 9} am waiting for bug-reports. :-)
  2409. * DIR, LIST, COPY, DELETE etc.
  2410.   Directories nested very much, about more than 50 levels, and using
  2411.   recursive option to scan them, cause ZShell to crash. Still looking
  2412.   for the bug.
  2413. * If you type a command and press Return while an other command (like DIR)
  2414.   outputs on the window, it will appear after the next prompt, but it
  2415.   will just be put in the history buffer without executing it. Sorry,
  2416.   there is no way to fix this, because the Return above is treated as
  2417.   Shift-Return by the system. Two solutions:
  2418.   1.) Press cursor up (last line in history) and then press Return
  2419.   2.) Use "config ctrlkeys WQSEIX[TYHKJLRVFP". With this Shift-Return
  2420.       will be the same as Return and CTRL-K will be what Shift-Return
  2421.       was before.
  2422. * @{" Filename completion " link filenamecompletion}
  2423.   If you have a filename with a space in it, you have to make sure you
  2424.   type the quotes around it by yourself, this can hardly be done
  2425.   automatically. Press CTRL-F instead of TAB in these cases.
  2426. * @{" PATH " link Path}
  2427.   If you have multiple assigns (ASSIGN ADD) to your C: (or another)
  2428.   directory, PATH will accept only the first one. Add the other
  2429.   directories to the path by using "path directoryname".
  2430. * @{" Parser " link Parser}
  2431.   \" is converted to " only in some commands like ECHO and ASK,
  2432.   but it is not treated as quote, too.
  2433. @ENDNODE
  2434. @NODE Future "Possibilities for Future Improvements"
  2435. Planned for next version:
  2436. New documentation written by Timothy.
  2437. (Hi Timothy, mailing you does not work, please try to mail me.)
  2438. Other ideas/suggestions:
  2439. * GUI for configuring
  2440. * Quick directory changes by using a database
  2441. * Full XPK-support
  2442. * Scrollbar for review-buffer (this will be difficult)
  2443. * Add more commands to the directory-lister (like makeicon,search)
  2444. * Make KILL a real killer (windows, screens)
  2445. * MAKEDIR can create nested dirs: If RAM: is empty "makedir ram:a/b/c"
  2446.   would create directory c in b in a in RAM: .
  2447. * HEX option for MORE.
  2448. * Applly configurable menues to the window
  2449. * More options for the LIST command (especially LFORMAT).
  2450. * Remove PUTMSG and GETMSG
  2451. * COMPARE or DIFF command
  2452. Less probable:
  2453. * COPY asks to remove incomplete destination files.
  2454. * RENAME command with wildcard support: "rename *.asm *.s" would rename
  2455.   all files ending in .asm to the same name ending in .s !
  2456. * Make it a commodity with hotkey.
  2457. * Improve internal script file execution, like passing arguments,
  2458.   allow subroutine scripts and commands like FOR.
  2459. * Include MOUNT/INSTALL command.
  2460. * Faster scrolling (jump scroll/1 bitplane scroll)
  2461. * Patch for 68000-Processors to be as fast as 68060/50MHz-Processors ;-)
  2462. * Write a stripped-down version for MessyDOS; after starting this would say:
  2463.   This is ZShell V2.x *** Fatal error: no multitasking system !  ;-)
  2464. If you want to see these or other improvements made, please write to @{" me " Link Authors 9}.
  2465. If you do not, please write to me, too :-)
  2466. Note that there is a (about) 32K limit of the executable, because I only
  2467. use relative addressing (like in small code model). So suggestions what
  2468. to remove are also welcome.
  2469. I thought about making a separate version for OS2.0+:
  2470. Command-line-editing and review stuff could be done best (most powerful)
  2471. within a console-handler; there are already several available (as I know,
  2472. the only one that is Freeware is KingCon), so I do not want to write 
  2473. another one. The disadvantages of these I have seen is that you need to
  2474. change alot between mouse and keyboard and they are somehow slow on my
  2475. system (and do not work on OS1.3- systems) and memory-hungry.
  2476. Except for Command-line-editing and review, the inbuild commands are a
  2477. main advantage of ZShell. These commands could be moved to one executable
  2478. file; if this file was executed, it would create all inbuild commands
  2479. as resident commands that could be used by the normal Shell.
  2480. (This would be somehow like the MessyDOS COMMAND.COM file.)
  2481. So if you used this file and a separate console-handler, you could work
  2482. comfortably with the normal Shell.
  2483. If there are enough people asking for that, I will think about writing
  2484. such a "multi-command-file", but I will not write another console-handler.
  2485. And, last but not least, I have to invest lots of time in my studies and
  2486. I do not want to hang around all remaining time at the keyboard !
  2487. @ENDNODE
  2488. @NODE Distribution "Distribution"
  2489. Following files belong to this document:
  2490.  1) ZShell           The main executable
  2491.  2) ZSH              The small starter
  2492.  3) ZShell.doc       The documentation (and online help manual)
  2493.  4) ZShell.guide     The AmigaGuide documentation
  2494.  5) ReadMe           Short description
  2495.  6) ZStart           An example startup script (can be put in S: )
  2496.  7) ZShell.s         Source code of the main executable
  2497.  8) ZSH.s            Source code of the small starter
  2498.  9) Csh-Aliases      Some aliases to make it a bit similar to UNICS csh
  2499.  and some icons.
  2500. @ENDNODE
  2501. @NODE Copyright "Copyright"
  2502. COPYRIGHT
  2503. (taken directly from the V1.3 distribution from Paul Hayter)
  2504.  ZSHELL IS FREELY DISTRIBUTABLE. YOU CAN DISTRIBUTE THIS AS LONG AS
  2505.  THIS DOC FILE REMAINS WITH THE EXECUTABLE, AND THAT NO CHARGE IS MADE FOR
  2506.  THEM (APART FROM A NOMINAL COPYING CHARGE). IF YOU FEEL LIKE SENDING
  2507.  ME SOMETHING FOR THIS PROGRAM, SEND ME A POSTCARD!, A P.D. DISK, A
  2508.  PROGRAM YOU'VE BEEN WORKING ON ,BUT DON'T SEND ME ANY MONEY (WELL, IF
  2509.  YOU REALLY, REALLY WANT TO, I GUESS I COULD PUT UP WITH IT).
  2510. Note from Martin:
  2511.  This is an update to Version 1.3 on the Fish Library Disk 537 from
  2512.  Paul Hayter. I (Martin) tried to ask him for permission to release
  2513.  this, but he has not answered. Because the copyright notice is left
  2514.  unchanged and the original executable with documentation is included,
  2515.  I do not think that I am doing something nasty.
  2516.  (In the original distribution there was the source code included
  2517.  and there is nothing stated to distribute it only unmodified.)
  2518.  To make things easier I accept the same copyright notice for the parts
  2519.  I have written. They are marked in the source with V2.x (well, mostly).
  2520.  I estimate that about 70% of the source, executable and the documentation
  2521.  is from me.
  2522.  @{" I " Link Authors 9} would like to get your comment on ZShell to see if anybody is
  2523.  using it and what can be improved.
  2524. @ENDNODE
  2525. @NODE Disclaimer "Disclaimer"
  2526. DISCLAIMER
  2527. USE THE FILES OF THIS PACKAGE ON YOUR OWN RISK !
  2528. The authors are in no way responsible for what you are doing with it
  2529. or what it does to you or your soft- and hardware.
  2530. Amiga, AmigaDOS, AmigaGuide, Workbench and Kickstart were registered
  2531. trademarks of Commodore-Amiga Inc and now probably are of ESCOM AG.
  2532. MessyDOS and UNICS are not really trademarks (as I know)  :-)
  2533. @ENDNODE
  2534. @NODE Credits "Credits"
  2535. CREDITS FROM PAUL
  2536.  Many thanks to Wayne for his invaluable help in doing the history
  2537.  and command line editing parts of ZShell. Also, thanks to
  2538.  Tim Strachan who asked for the history stuff.
  2539.  ZShell was entirely written using Wayned by Wayne Hayter (various
  2540.  versions). And was assembled with A68K V2.61 by Charlie Gibbs. And
  2541.  linked with Blink V6.7 by the Software Distillery.
  2542. CREDITS FROM MARTIN
  2543.  Many thanks go to:
  2544.  * The administrators of Aminet for their great work
  2545.  * Samu Nuojua for his great Freeware assembler SNMA
  2546.    ZShell V2.8 was assembled with V1.99: SNMA ZShell.S EXEOBJ OPTLEVEL 5
  2547.  * Ralph Babel for the System0 code (see source)
  2548.  * Martin Mares for some fine assembler programs
  2549.  * Frank for using ZShell (I persuaded him :-)
  2550.  (V2.0)
  2551.  * Laura Mahoney for trying to send me a postcard and lots of mail
  2552.  * Igor Srdanovic
  2553.  * Willem MC Hogeweg
  2554.  (V2.1)
  2555.  * Nico Max
  2556.  * Max Stouugard
  2557.  * Alexandros Loghis for good ideas
  2558.  (V2.2)
  2559.  * Christian Steigies for sending me postcards, for really long mails,
  2560.    for lots of shocking bugreports :) and for betatesting
  2561.  * Oliver Hofmann
  2562.  * Holger Jakob
  2563.  * Hans Kruse
  2564.  (V2.3)
  2565.  * Nobody !
  2566.  (V2.4)
  2567.  * Aristotelis Grammatikakis
  2568.  * Jonathan Marsh
  2569.  * Dominique Niethammer
  2570.  * Fredrik Solenberg
  2571.  * Teonanacatl
  2572.  * Chris
  2573.  * Fred Brooker for the music disk
  2574.  * David Klinect
  2575.  * Brian Myers
  2576.  (V2.5)
  2577.  * Timothy Cochran for rewriting the documentation (not finished)
  2578.  * Mark Dowe
  2579.  * Marek Petkov
  2580.  * Matthew Estela
  2581.  * Christian Hessenbruch
  2582.  (V2.7)
  2583.  * Bill Beogelein
  2584.  * Louis Van Breda for reporting Enforcer hits
  2585.  * Peter Bagnato
  2586.  * Peter Schulz
  2587. @ENDNODE
  2588. @NODE Authors "Authors"
  2589. Please send any correspondence and/or bug reports referring V1.3
  2590. to me at the address below:-
  2591.       Paul Hayter
  2592.       PO Box 331
  2593.       Ballina
  2594.       2478
  2595.       AUSTRALIA
  2596. Please send correspondence, bug reports, comments, suggestions
  2597. for future improvements etc. referring V2.x to this adress:
  2598.       Martin Gierich
  2599.       Narzissenweg 7
  2600.       76297 Stutensee
  2601.       GERMANY
  2602.   (I would really like to get a picture postcard from you, even if
  2603.   you just wrote a "Hello" on it !)
  2604.   If you have EMAIL access, it would be nice if you send me one
  2605.   at one of these adresses:
  2606.            uj3w@rz.uni-karlsruhe.de           (Internet)
  2607.    or to   uj3w@ibm3090.rz.uni-karlsruhe.de   (Internet)
  2608.    or to   UJ3W@DKAUNI2.BITNET                (Bitnet)
  2609.   I will try to reply EVERY EMail I get !
  2610.   Please tell me your system-configuration, at least your Kickstart-
  2611.   Version, so that I see which kind of systems should be most supported
  2612.   in future versions. My system is an A500 with 200 MB Harddisk, 3 MB RAM,
  2613.   Kickstart 2.04 and Workbench 2.1 and a VGA-Monitor with Fickerfixer.
  2614.   Note that large parts of ZShell were developped under Kickstart 1.3 !
  2615.   (Ah yes, and I have such a Vortex ATONCE AT-Emulator; the fastest thing
  2616.   it can do is to hang itself up, and they do not make any updates !)
  2617.       /\/\            o o
  2618.      / __ \ artin      <
  2619.     (_/  \_)         `---'
  2620. @ENDNODE
  2621.